diff options
| author | patrick-scho | 2025-06-03 14:14:04 +0200 |
|---|---|---|
| committer | patrick-scho | 2025-06-03 14:14:04 +0200 |
| commit | 076923d8cd87e546f11c42252d227239436bf7f0 (patch) | |
| tree | 0b15d830956f049b3679760df2af254439417f65 | |
| parent | bc412cf281a119c1f238c00d0196502aa5fc56cf (diff) | |
| download | git-hooks-076923d8cd87e546f11c42252d227239436bf7f0.tar.gz git-hooks-076923d8cd87e546f11c42252d227239436bf7f0.zip | |
add git-hooks/post-receive
| -rwxr-xr-x | git-hooks/post-receive | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/git-hooks/post-receive b/git-hooks/post-receive new file mode 100755 index 0000000..3336801 --- /dev/null +++ b/git-hooks/post-receive @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import os + +dirs = [d for d in os.listdir() if not d.startswith('.')] + +for d in dirs: + files = os.listdir(d) + + for f in files: + print(f'cp {d}/{f} /srv/git/{d}/hooks/{f}') |
