Subject: | Different git wording |
Older git versions seem to use a different wording, causing the t/??-git-defaults-*.t test to fail. For example on a debian/jessie system (git 2.1.4):
...
Previous HEAD position was f602a53... perl 5.888_888 release
HEAD is now at 783a036... 5.005003 release
# Failed test 'Branch: '* (detached from perl/v5.5.3)' (perl/v5.5.3)'
# at t/20-git-defaults-5.5.3.t line 55.
# got: '* (detached from perl/v5.5.3)'
# expected: '* (HEAD detached at perl/v5.5.3)'
# Looks like you failed 1 test of 3.
t/20-git-defaults-5.5.3.t ......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
Previous HEAD position was 783a036... 5.005003 release
HEAD is now at f602a53... perl 5.888_888 release
# Failed test 'Branch: '* (detached from perl/v5.888.888)' (perl/v5.888.888)'
# at t/21-git-defaults-5.888.888.t line 55.
# got: '* (detached from perl/v5.888.888)'
# expected: '* (HEAD detached at perl/v5.888.888)'
# Looks like you failed 1 test of 3.
t/21-git-defaults-5.888.888.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
Previous HEAD position was f602a53... perl 5.888_888 release
HEAD is now at bbb0996... fix version
# Failed test 'Branch: '* (detached from perl/v5.999.999)' (perl/v5.999.999)'
# at t/22-git-defaults-5.999.999.t line 55.
# got: '* (detached from perl/v5.999.999)'
# expected: '* (HEAD detached at perl/v5.999.999)'
# Looks like you failed 1 test of 3.
t/22-git-defaults-5.999.999.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
Previous HEAD position was bbb0996... fix version
HEAD is now at f602a53... perl 5.888_888 release
# Failed test 'Branch: '* (detached from perl/v5.888.888)' (* (HEAD detached at perl/v5.888.888))'
# at t/23-git-defaults-5.888.999.t line 55.
# got: '* (detached from perl/v5.888.888)'
# expected: '* (HEAD detached at perl/v5.888.888)'
# Looks like you failed 1 test of 3.
t/23-git-defaults-5.888.999.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
...