Fixed bug in stash parsing

master
oGre 10 years ago
parent 3621b5a67c
commit 5fe390d098
  1. 2
      gitstatus.sh

@ -40,7 +40,7 @@ if [[ "$__GIT_PROMPT_IGNORE_STASH" = "1" ]]; then
else else
stash_file="$( git rev-parse --git-dir )/logs/refs/stash" stash_file="$( git rev-parse --git-dir )/logs/refs/stash"
if [[ -e "${stash_file}" ]]; then if [[ -e "${stash_file}" ]]; then
num_stashed=$( wc -l "${stash_file}" | cut -d' ' -f1 ) num_stashed=$( wc -l < "${stash_file}" | tr -s ' ' | cut -d ' ' -f2 )
else else
num_stashed=0 num_stashed=0
fi fi

Loading…
Cancel
Save