summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-02-12 18:02:24 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-02-12 18:02:24 +0100
commitce91cd42d8804cbc52029a2d064f9960a83927b2 (patch)
treed4dc33125b85b7c5a0ae4606fffbef4e66f8b7e9
parent457673c8e8cd90ffa05bb556a126ecf73e9bcc79 (diff)
fix: add git@ before uri
-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 9c79765..9a9f923 100755
--- a/bin/stagit-new-repo
+++ b/bin/stagit-new-repo
@@ -21,7 +21,7 @@ echo "Initializing git repository..."
git init --bare "$srv/$repo.git"
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 "git@$uri:$repo.git" > "$srv/$repo.git/url"
echo "$owner" > "$srv/$repo.git/owner"
echo "$desc" > "$srv/$repo.git/description"
chown -R git:git "$srv/$repo.git"