From 6398d67067837fe2a77d5d5290fec85719a02a8c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 27 May 2022 13:19:51 +0200 Subject: clone to NAME.git folders It seems to be the convention and the default behaviour of `git clone --bare`, so do that. --- test/integration/example/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/integration/example/test.sh') diff --git a/test/integration/example/test.sh b/test/integration/example/test.sh index 6e38729..e22cec1 100755 --- a/test/integration/example/test.sh +++ b/test/integration/example/test.sh @@ -67,7 +67,7 @@ verify_origin() { echo "Verifying origin: $repo" echo ---------------------------------------------------------------------- - local repo_dir="$output_dir/$repo" + local repo_dir="$output_dir/$repo.git" local actual actual="$( GIT_DIR="$repo_dir" git config --get remote.origin.url )" @@ -90,7 +90,7 @@ verify_repos() { echo "Verifying repository: $repo" echo ---------------------------------------------------------------------- - local repo_dir="$output_dir/$repo" + local repo_dir="$output_dir/$repo.git" GIT_DIR="$repo_dir" git rev-parse HEAD > /dev/null echo 'HEAD is fine.' @@ -111,7 +111,7 @@ verify_no_repos() { echo "Verifying repository doesn't exist: $repo" echo ---------------------------------------------------------------------- - local repo_dir="$output_dir/$repo" + local repo_dir="$output_dir/$repo.git" if [ -e "$repo_dir" ]; then echo "Exists, but it shouldn't." return 1 -- cgit v1.2.3