From 076923d8cd87e546f11c42252d227239436bf7f0 Mon Sep 17 00:00:00 2001 From: patrick-scho Date: Tue, 3 Jun 2025 14:14:04 +0200 Subject: [PATCH] add git-hooks/post-receive --- git-hooks/post-receive | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 git-hooks/post-receive 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}') -- 2.50.1