Skip to content

Commit

Permalink
fix git change detection in new git versions (liquidprompt#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Pinyol committed Apr 27, 2017
1 parent 93df016 commit 321a012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ _lp_git_branch_color()

local ret
local shortstat # only to check for uncommitted changes
shortstat="$(LC_ALL=C \git diff --shortstat HEAD 2>/dev/null)"
shortstat="$(LC_ALL=C \git diff --shortstat 2>/dev/null)"

if [[ -n "$shortstat" ]]; then
local u_stat # shorstat of *unstaged* changes
Expand Down

0 comments on commit 321a012

Please sign in to comment.