summaryrefslogtreecommitdiff
path: root/t/t5505-remote.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-01-20 13:23:59 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-20 13:23:59 -0800
commit66276d972c0682d49773c20ca67c33bdab9ab76d (patch)
tree2a7f0631c1fcb6ba779910da23d24b88d9f4a488 /t/t5505-remote.sh
parentMerge branch 'sb/maint-octopus' into maint (diff)
parentFix "git remote update" with remotes.defalt set (diff)
downloadtgif-66276d972c0682d49773c20ca67c33bdab9ab76d.tar.xz
Merge branch 'bg/maint-remote-update-default' into maint
* bg/maint-remote-update-default: Fix "git remote update" with remotes.defalt set
Diffstat (limited to 't/t5505-remote.sh')
-rwxr-xr-xt/t5505-remote.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index fd166d9de3..936fe0a1a6 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -419,6 +419,20 @@ test_expect_success 'update default (overridden, with funny whitespace)' '
'
+test_expect_success 'update (with remotes.default defined)' '
+
+ (cd one &&
+ for b in $(git branch -r)
+ do
+ git branch -r -d $b || break
+ done &&
+ git config remotes.default "drosophila" &&
+ git remote update &&
+ git branch -r > output &&
+ test_cmp expect output)
+
+'
+
test_expect_success '"remote show" does not show symbolic refs' '
git clone one three &&