projects
/
git-mirror.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d1fcac9
)
compensate for the gitolite mirror script not to be a proper executable
author
Ralf Jung
<post@ralfj.de>
Wed, 25 Feb 2015 21:01:20 +0000
(22:01 +0100)
committer
Ralf Jung
<post@ralfj.de>
Wed, 25 Feb 2015 21:01:20 +0000
(22:01 +0100)
git_mirror.py
patch
|
blob
|
history
diff --git
a/git_mirror.py
b/git_mirror.py
index 16a8896d659bdfc1ae43611165e72b0afb50cd9e..0fe699e40adb3ee40a067395550bd16744fcc6c7 100644
(file)
--- a/
git_mirror.py
+++ b/
git_mirror.py
@@
-174,7
+174,7
@@
class Repo:
# Now run the post-receive hooks. This will *also* push the changes to all mirrors, as we
# are one of these hooks!
os.putenv("GIT_MIRROR_SOURCE", mirror) # tell ourselves which repo we do *not* have to update
# Now run the post-receive hooks. This will *also* push the changes to all mirrors, as we
# are one of these hooks!
os.putenv("GIT_MIRROR_SOURCE", mirror) # tell ourselves which repo we do *not* have to update
- with subprocess.Popen(['hooks/post-receive'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) as p:
+ with subprocess.Popen(['
/bin/sh', '
hooks/post-receive'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) as p:
(stdout, stderr) = p.communicate("{0} {1} {2}\n".format(oldsha, newsha, ref).encode('utf-8'))
stdout = stdout.decode('utf-8')
if p.returncode:
(stdout, stderr) = p.communicate("{0} {1} {2}\n".format(oldsha, newsha, ref).encode('utf-8'))
stdout = stdout.decode('utf-8')
if p.returncode: