We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 724d3dc + 4083a4b commit c66cdfbCopy full SHA for c66cdfb
gitstatus.sh
@@ -38,7 +38,7 @@ staged_files=`git diff --staged --name-status`
38
num_changed=$(( `all_lines "$gitstatus"` - `count_lines "$gitstatus" U` ))
39
num_conflicts=`count_lines "$staged_files" U`
40
num_staged=$(( `all_lines "$staged_files"` - num_conflicts ))
41
-num_untracked=`git ls-files --others --exclude-standard | wc -l`
+num_untracked=`git ls-files --others --exclude-standard $(git rev-parse --show-cdup) | wc -l`
42
if [[ "$__GIT_PROMPT_IGNORE_STASH" = "1" ]]; then
43
num_stashed=0
44
else
0 commit comments