summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 2832729..781c62e 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -515,7 +515,7 @@ parse_git_status() {
if [[ ! -e $git_dir/FETCH_HEAD ]]; then
git fetch $remote >& /dev/null &
else
- fetchDate=$(date --utc --reference=.git/FETCH_HEAD +%s)
+ fetchDate=$(date --utc --reference=$git_dir/FETCH_HEAD +%s)
now=$(date --utc +%s)
delta=$(( $now - $fetchDate ))
# if last update to .git/FETCH_HEAD file