Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/t6300-cleanup' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 21 Mar 2017 22:03:30 +0000
(15:03 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 21 Mar 2017 22:03:30 +0000
(15:03 -0700)
A test that creates a confusing branch whose name is HEAD has been
corrected not to do so.
* jk/t6300-cleanup:
t6300: avoid creating refs/heads/HEAD
t/t6300-for-each-ref.sh
patch
|
blob
|
history
raw
(from parent 1:
d6bc22e
)
diff --git
a/t/t6300-for-each-ref.sh
b/t/t6300-for-each-ref.sh
index aea1dfc7148e4885e52a579ca60ee622c49b5693..a468041c50d9ef2c093ee4f149f297ad970065cf 100755
(executable)
--- a/
t/t6300-for-each-ref.sh
+++ b/
t/t6300-for-each-ref.sh
@@
-558,7
+558,7
@@
test_expect_success 'do not dereference NULL upon %(HEAD) on unborn branch' '
test_when_finished "git checkout master" &&
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
sed -e "s/^\* / /" actual >expect &&
- git checkout --orphan
HEAD
&&
+ git checkout --orphan
orphaned-branch
&&
git for-each-ref --format="%(HEAD) %(refname:short)" refs/heads/ >actual &&
test_cmp expect actual
'