File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -347,20 +347,20 @@ __git_ps1 ()
347
347
local step=" "
348
348
local total=" "
349
349
if [ -d " $g /rebase-merge" ]; then
350
- b=" $( cat " $g /rebase-merge/head-name" ) "
351
- step=$( cat " $g /rebase-merge/msgnum" )
352
- total=$( cat " $g /rebase-merge/end" )
350
+ b=" $( cat " $g /rebase-merge/head-name" 2> /dev/null ) "
351
+ step=$( cat " $g /rebase-merge/msgnum" 2> /dev/null )
352
+ total=$( cat " $g /rebase-merge/end" 2> /dev/null )
353
353
if [ -f " $g /rebase-merge/interactive" ]; then
354
354
r=" |REBASE-i"
355
355
else
356
356
r=" |REBASE-m"
357
357
fi
358
358
else
359
359
if [ -d " $g /rebase-apply" ]; then
360
- step=$( cat " $g /rebase-apply/next" )
361
- total=$( cat " $g /rebase-apply/last" )
360
+ step=$( cat " $g /rebase-apply/next" 2> /dev/null )
361
+ total=$( cat " $g /rebase-apply/last" 2> /dev/null )
362
362
if [ -f " $g /rebase-apply/rebasing" ]; then
363
- b=" $( cat " $g /rebase-apply/head-name" ) "
363
+ b=" $( cat " $g /rebase-apply/head-name" 2> /dev/null ) "
364
364
r=" |REBASE"
365
365
elif [ -f " $g /rebase-apply/applying" ]; then
366
366
r=" |AM"
You can’t perform that action at this time.
0 commit comments