Skip to content

Commit

Permalink
Merge branch 'jk/prompt-stash-could-be-packed'
Browse files Browse the repository at this point in the history
The prompt script checked $GIT_DIR/ref/stash file to see if there
is a stash, which was a no-no.

* jk/prompt-stash-could-be-packed:
  git-prompt: do not look for refs/stash in $GIT_DIR
  • Loading branch information
Junio C Hamano committed Sep 9, 2014
2 parents 3ef87bd + 0fa7f01 commit 6401489
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/completion/git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ __git_ps1 ()
fi
fi
if [ -n "${GIT_PS1_SHOWSTASHSTATE-}" ] &&
[ -r "$g/refs/stash" ]; then
git rev-parse --verify --quiet refs/stash >/dev/null
then
s="$"
fi

Expand Down

0 comments on commit 6401489

Please sign in to comment.