Commit c0e8ab4
committed
subtree: allow testing with reftable backend
"git subtree" (in contrib/) comes with its own test script, which
has this line
defaultBranch=$(sed "s,ref: refs/heads/,," "$test_count/.git/HEAD")
that assumes that you can read from .git/HEAD as a regular text file
and you'd find a textual symref in reffiles backend.
Not necessarily.
make && cd contrib/subtree &&
GIT_TEST_DEFAULT_REF_FORMAT=reftable make test
fails due to this. Use "git symbolic-ref" instead to read the value
of the symref.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 67ad421 commit c0e8ab4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
| 1600 | + | |
| 1601 | + | |
1601 | 1602 | | |
1602 | 1603 | | |
1603 | 1604 | | |
| |||
0 commit comments