diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-27 13:19:51 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-27 13:37:27 +0200 |
commit | 6398d67067837fe2a77d5d5290fec85719a02a8c (patch) | |
tree | e3a2e6407cead893624ef8fe3e6f6d1508fafbe1 /test/integration/example/test.sh | |
parent | README: update URLs (diff) | |
download | cgitize-6398d67067837fe2a77d5d5290fec85719a02a8c.tar.gz cgitize-6398d67067837fe2a77d5d5290fec85719a02a8c.zip |
clone to NAME.git folders
It seems to be the convention and the default behaviour of `git clone
--bare`, so do that.
Diffstat (limited to 'test/integration/example/test.sh')
-rwxr-xr-x | test/integration/example/test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |