Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t: branch: fix broken && chains
author
Felipe Contreras
<felipe.contreras@gmail.com>
Sat, 31 Aug 2013 04:31:50 +0000
(23:31 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 3 Sep 2013 19:14:29 +0000
(12:14 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3200-branch.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
002ba03
)
diff --git
a/t/t3200-branch.sh
b/t/t3200-branch.sh
index 3134652f8b7394464d36e432537b270814bde33b..d85306f1b991b7b1c178a35c05f1bbfc70077321 100755
(executable)
--- a/
t/t3200-branch.sh
+++ b/
t/t3200-branch.sh
@@
-425,14
+425,14
@@
test_expect_success '--set-upstream-to fails on a non-ref' '
test_expect_success 'use --set-upstream-to modify HEAD' '
test_config branch.master.remote foo &&
test_config branch.master.merge foo &&
test_expect_success 'use --set-upstream-to modify HEAD' '
test_config branch.master.remote foo &&
test_config branch.master.merge foo &&
- git branch my12
+ git branch my12
&&
git branch --set-upstream-to my12 &&
test "$(git config branch.master.remote)" = "." &&
test "$(git config branch.master.merge)" = "refs/heads/my12"
'
test_expect_success 'use --set-upstream-to modify a particular branch' '
git branch --set-upstream-to my12 &&
test "$(git config branch.master.remote)" = "." &&
test "$(git config branch.master.merge)" = "refs/heads/my12"
'
test_expect_success 'use --set-upstream-to modify a particular branch' '
- git branch my13
+ git branch my13
&&
git branch --set-upstream-to master my13 &&
test "$(git config branch.my13.remote)" = "." &&
test "$(git config branch.my13.merge)" = "refs/heads/master"
git branch --set-upstream-to master my13 &&
test "$(git config branch.my13.remote)" = "." &&
test "$(git config branch.my13.merge)" = "refs/heads/master"
@@
-443,7
+443,7
@@
test_expect_success '--unset-upstream should fail if given a non-existent branch
'
test_expect_success 'test --unset-upstream on HEAD' '
'
test_expect_success 'test --unset-upstream on HEAD' '
- git branch my14
+ git branch my14
&&
test_config branch.master.remote foo &&
test_config branch.master.merge foo &&
git branch --set-upstream-to my14 &&
test_config branch.master.remote foo &&
test_config branch.master.merge foo &&
git branch --set-upstream-to my14 &&
@@
-465,7
+465,7
@@
test_expect_success '--unset-upstream should fail on detached HEAD' '
'
test_expect_success 'test --unset-upstream on a particular branch' '
'
test_expect_success 'test --unset-upstream on a particular branch' '
- git branch my15
+ git branch my15
&&
git branch --set-upstream-to master my14 &&
git branch --unset-upstream my14 &&
test_must_fail git config branch.my14.remote &&
git branch --set-upstream-to master my14 &&
git branch --unset-upstream my14 &&
test_must_fail git config branch.my14.remote &&