Skip to content

Commit 7855e77

Browse files
committedNov 14, 2014
.git was being touched continuously
Fixes #97
1 parent cc97adf commit 7855e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎gitstatus.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ staged_files=`git diff --staged --name-status`
3838
num_changed=$(( `all_lines "$gitstatus"` - `count_lines "$gitstatus" U` ))
3939
num_conflicts=`count_lines "$staged_files" U`
4040
num_staged=$(( `all_lines "$staged_files"` - num_conflicts ))
41-
num_untracked=`git status -s -uall | grep -c "^??"`
41+
num_untracked=`GIT_INDEX_FILE=/tmp/bash_git_prompt_index git status -s -uall | grep -c "^??"`
4242
if [[ -n "$GIT_PROMPT_IGNORE_STASH" ]]; then
4343
num_stashed=0
4444
else

0 commit comments

Comments
 (0)