summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-01-17 22:27:08 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-01-17 23:00:31 -0800
commitb2a6d1c6868b6d5e7d2b4fa9129341220a1e848a (patch)
treec5223916691e2b380166006e6014e0e524cafd9b /t
parentrevision walker: include a detached HEAD in --all (diff)
downloadtgif-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')
-rwxr-xr-xt/t5701-clone-local.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh
index 14413f851f..fe0fda282c 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