From 4717bf25254a7cd8404b81209b6817c911451f5d Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 30 Jan 2011 22:12:49 +0100 Subject: [PATCH] git: Make git-wrapper create links with -f. This allows it to overwrite the example hooks scripts that git creates by default. --- usr/local/bin/git-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.30.2