summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-02-12 17:35:40 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-02-12 17:35:40 +0100
commitf3366b11f887652fcf71d1b23872adcfbbb25904 (patch)
treee5b1b7e2d74c7cdc99d17a8c824c84fe680b056a /bin
parent4c5ef201326ae2e9d79b009a3dcee916116678de (diff)
fix: update hook path
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stagit-new-repo2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/stagit-new-repo b/bin/stagit-new-repo
index df67ea4..9c79765 100755
--- a/bin/stagit-new-repo
+++ b/bin/stagit-new-repo
@@ -19,7 +19,7 @@ www="/var/www/git"
echo "Initializing git repository..."
git init --bare "$srv/$repo.git"
-cp "$home/hooks/post-receive" "$srv/$repo.git/hooks/post-receive"
+cp "$/usr/local/share/post-receive" "$srv/$repo.git/hooks/post-receive"
chmod u+x "$srv/$repo.git/hooks/post-receive"
echo "$uri:$repo.git" > "$srv/$repo.git/url"
echo "$owner" > "$srv/$repo.git/owner"