summaryrefslogtreecommitdiff
path: root/t/t9144-git-svn-old-rev_map.sh
diff options
context:
space:
mode:
authorLibravatar Kaartic Sivaraam <kaartic.sivaraam@gmail.com>2018-04-03 10:01:00 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-04-05 16:01:35 +0900
commita236f900d8f60e567fca0106038f4797341d97b2 (patch)
tree665f1021d58a0869d8ce79213cd20dd9a942433b /t/t9144-git-svn-old-rev_map.sh
parentGit 2.17 (diff)
downloadtgif-a236f900d8f60e567fca0106038f4797341d97b2.tar.xz
branch --list: print useful info whilst interactive rebasing a detached HEAD
When rebasing interactively (rebase -i), "git branch --list" prints a line indicating the current branch being rebased. This works well when the interactive rebase is initiated when a local branch is checked out. This doesn't play well when the rebase is initiated on a detached HEAD. When "git branch --list" tries to print information related to the interactive rebase in this case it tries to print the name of a branch using an uninitialized variable and thus tries to print a "null pointer string". As a consequence, it does not provide useful information while also inducing undefined behaviour. So, print the point from which the rebase was started when interactive rebasing a detached HEAD. Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9144-git-svn-old-rev_map.sh')
0 files changed, 0 insertions, 0 deletions