projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5251972
)
git: Make git-wrapper create links with -f.
login
author
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 30 Jan 2011 21:12:49 +0000
(22:12 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 30 Jan 2011 21:12:49 +0000
(22:12 +0100)
This allows it to overwrite the example hooks scripts that git creates
by default.
usr/local/bin/git-wrapper
patch
|
blob
|
history
diff --git
a/usr/local/bin/git-wrapper
b/usr/local/bin/git-wrapper
index e79896549d843768298bd65a591a5f6d39baedcc..5a55eb7af92f42ca6c7d68ce0c1db5d6c2fe8056 100755
(executable)
--- a/
usr/local/bin/git-wrapper
+++ b/
usr/local/bin/git-wrapper
@@
-16,7
+16,7
@@
function init_repos() {
mkdir "$1" &> /dev/null || return 1
(cd $1 && git --bare init &> /dev/null) || return 1
for hook in $HOOKS; do
- ln -s "$HOOKS_PATH/$hook" "$1/hooks/" || return 1
+ ln -s
-f
"$HOOKS_PATH/$hook" "$1/hooks/" || return 1
done
}