diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2018-04-03 20:17:15 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-05 16:05:09 +0900 |
commit | 1f537be3f21ce1289c5c3ed9ebf58f02938ad9f7 (patch) | |
tree | f04f66795951e7063b2e1451d123093c8b6f9bc1 /t/t2020-checkout-detach.sh | |
parent | branch --list: print useful info whilst interactive rebasing a detached HEAD (diff) | |
download | tgif-1f537be3f21ce1289c5c3ed9ebf58f02938ad9f7.tar.xz |
t3200: verify "branch --list" sanity when rebasing from detached HEAD
"git branch --list" shows an in-progress rebase as:
* (no branch, rebasing <branch>)
master
...
However, if the rebase is started from a detached HEAD, then there is no
<branch>, and it would attempt to print a NULL pointer. The previous
commit fixed this problem, so add a test to verify that the output is
sane in this situation.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2020-checkout-detach.sh')
0 files changed, 0 insertions, 0 deletions