Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-20 01:05:11 +0400
committerJunio C Hamano <gitster@pobox.com>2014-09-20 01:05:11 +0400
commit8ec959fbcec5f12925eb0a4a60e789a818fdccb9 (patch)
tree91d4bb1390bf4738123db1567e83565ef9e302cd /contrib
parent92ea1ac8267a14f4eae55f175ac7ff0aeaaddc89 (diff)
parent0fa7f01635aa0356823d5cbb5109f61b0f307e4b (diff)
Merge branch 'jk/prompt-stash-could-be-packed' into maint
* jk/prompt-stash-could-be-packed: git-prompt: do not look for refs/stash in $GIT_DIR
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-prompt.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index 9d684b10a6..c5473dc8db 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -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