summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eed1fcd)
raw | patch | inline | side by side (parent: eed1fcd)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Thu, 26 Mar 2009 20:53:24 +0000 (21:53 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 Mar 2009 08:08:36 +0000 (01:08 -0700) |
According to the documentation, it is perfectly okay to follow local
branches using the --track option. Introduce a test which checks whether
they behave the same. Currently one test fails.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branches using the --track option. Introduce a test which checks whether
they behave the same. Currently one test fails.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6040-tracking-info.sh | patch | blob | history |
index ba9060190d31f0b57a461c114e1c856523845f78..2a2b6b63d50313775226d6fe55bca846a067a263 100755 (executable)
--- a/t/t6040-tracking-info.sh
+++ b/t/t6040-tracking-info.sh
git checkout -b b4 origin &&
advance e &&
advance f
- )
+ ) &&
+ git checkout -b follower --track master &&
+ advance g
'
script='s/^..\(b.\)[ 0-9a-f]*\[\([^]]*\)\].*/\1 \2/p'
grep "have 1 and 1 different" actual
'
+test_expect_failure 'checkout with local tracked branch' '
+ git checkout master &&
+ git checkout follower >actual
+ grep "is ahead of" actual
+'
+
test_expect_success 'status' '
(
cd test &&