summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-02-12 18:08:53 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-02-12 18:08:53 +0100
commit47e36f2866da1785f9b01ae312c5b795b9678cf2 (patch)
tree82a804da3134bbf7ed0bb91c31f436f01914cbec
parentce91cd42d8804cbc52029a2d064f9960a83927b2 (diff)
fix: remove $ from hook path
-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 9a9f923..bcd0b2a 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 "$/usr/local/share/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 "git@$uri:$repo.git" > "$srv/$repo.git/url"
echo "$owner" > "$srv/$repo.git/owner"