summaryrefslogtreecommitdiffstats
path: root/t/t5606-clone-options.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-10 19:08:39 +0200
committerJunio C Hamano <gitster@pobox.com>2022-10-10 19:08:39 +0200
commit7aeb0d4c47878a04e19cffe2ddf20d642df56414 (patch)
tree1b01cb6f5a50c867f473d40b0a40ad016b5f2339 /t/t5606-clone-options.sh
parentMerge branch 'jk/fsck-on-diet' (diff)
parentclone: allow "--bare" with "-o" (diff)
downloadgit-7aeb0d4c47878a04e19cffe2ddf20d642df56414.tar.xz
git-7aeb0d4c47878a04e19cffe2ddf20d642df56414.zip
Merge branch 'jk/clone-allow-bare-and-o-together'
"git clone" did not like to see the "--bare" and the "--origin" options used together without a good reason. * jk/clone-allow-bare-and-o-together: clone: allow "--bare" with "-o"
Diffstat (limited to 't/t5606-clone-options.sh')
-rwxr-xr-xt/t5606-clone-options.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/t/t5606-clone-options.sh b/t/t5606-clone-options.sh
index f6bb02ab94..cf221e92c4 100755
--- a/t/t5606-clone-options.sh
+++ b/t/t5606-clone-options.sh
@@ -42,11 +42,12 @@ test_expect_success 'rejects invalid -o/--origin' '
'
-test_expect_success 'disallows --bare with --origin' '
+test_expect_success 'clone --bare -o' '
- test_must_fail git clone -o foo --bare parent clone-bare-o 2>err &&
- test_debug "cat err" &&
- test_i18ngrep -e "options .--bare. and .--origin foo. cannot be used together" err
+ git clone -o foo --bare parent clone-bare-o &&
+ (cd parent && pwd) >expect &&
+ git -C clone-bare-o config remote.foo.url >actual &&
+ test_cmp expect actual
'