From 69ee6831250751192a8fa75f7b7fc2773c7acd27 Mon Sep 17 00:00:00 2001 From: JuanPablo Date: Sun, 26 Jun 2011 20:12:10 -0400 Subject: fixed bad route to .git --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3