From e2d12f60436035288b22bba4f97e5f010696f9c0 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 12 Feb 2022 19:10:39 +0100 Subject: fix: path when checking if git repo exists --- bin/stagit-new-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/stagit-new-repo b/bin/stagit-new-repo index e7cba72..90b0882 100755 --- a/bin/stagit-new-repo +++ b/bin/stagit-new-repo @@ -15,7 +15,7 @@ home="/home/git" srv="/srv/git" www="/var/www/git" -[ -d "$srv/$repo" ] && echo "$repo already exists!" && exit 1 +[ -d "$srv/$repo.git" ] && echo "$repo already exists!" && exit 1 git init --bare "$srv/$repo.git" cp "/usr/local/share/post-receive" "$srv/$repo.git/hooks/post-receive" -- cgit v1.2.3-70-g09d2