From: Matthijs Kooijman Date: Sun, 30 Jan 2011 21:12:49 +0000 (+0100) Subject: git: Make git-wrapper create links with -f. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fservers%2Fdrsnuggles.git;a=commitdiff_plain;h=4717bf25254a7cd8404b81209b6817c911451f5d git: Make git-wrapper create links with -f. This allows it to overwrite the example hooks scripts that git creates by default. --- diff --git a/usr/local/bin/git-wrapper b/usr/local/bin/git-wrapper index e798965..5a55eb7 100755 --- 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 }