diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-17 22:27:08 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-17 23:00:31 -0800 |
commit | b2a6d1c6868b6d5e7d2b4fa9129341220a1e848a (patch) | |
tree | c5223916691e2b380166006e6014e0e524cafd9b /t/t5701-clone-local.sh | |
parent | f0298cf1c6a7b5cc8b79d84a03b0ce07df2d9e6b (diff) | |
download | git-b2a6d1c6868b6d5e7d2b4fa9129341220a1e848a.tar.gz git-b2a6d1c6868b6d5e7d2b4fa9129341220a1e848a.tar.xz |
bundle: allow the same ref to be given more than once
"git bundle create x master master" used to create a bundle that lists
the same branch (master) twice. Cloning from such a bundle resulted in
a needless warning "warning: Duplicated ref: refs/remotes/origin/master".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5701-clone-local.sh')
-rwxr-xr-x | t/t5701-clone-local.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh index 14413f851..fe0fda282 100755 --- a/t/t5701-clone-local.sh +++ b/t/t5701-clone-local.sh @@ -11,7 +11,7 @@ test_expect_success 'preparing origin repository' ' git clone --bare . x && test "$(GIT_CONFIG=a.git/config git config --bool core.bare)" = true && test "$(GIT_CONFIG=x/config git config --bool core.bare)" = true - git bundle create b1.bundle master HEAD && + git bundle create b1.bundle --all && git bundle create b2.bundle master && mkdir dir && cp b1.bundle dir/b3 |