File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ __git_ps1 ()
280
280
step=$( cat " $g /rebase-apply/next" )
281
281
total=$( cat " $g /rebase-apply/last" )
282
282
if [ -f " $g /rebase-apply/rebasing" ]; then
283
+ b=" $( cat " $g /rebase-apply/head-name" ) "
283
284
r=" |REBASE"
284
285
elif [ -f " $g /rebase-apply/applying" ]; then
285
286
r=" |AM"
@@ -296,6 +297,7 @@ __git_ps1 ()
296
297
r=" |BISECTING"
297
298
fi
298
299
300
+ test -n " $b " ||
299
301
b=" $( git symbolic-ref HEAD 2> /dev/null) " || {
300
302
detached=yes
301
303
b=" $(
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ test_expect_success 'prompt - rebase merge' '
276
276
'
277
277
278
278
test_expect_success ' prompt - rebase' '
279
- printf " ((t2) |REBASE 1/3)" > expected &&
279
+ printf " (b2 |REBASE 1/3)" > expected &&
280
280
git checkout b2 &&
281
281
test_when_finished "git checkout master" &&
282
282
test_must_fail git rebase b1 b2 &&
You can’t perform that action at this time.
0 commit comments