summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-base.sh')
-rwxr-xr-xgit-base.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/git-base.sh b/git-base.sh
index e1bcff1..13d31d7 100755
--- a/git-base.sh
+++ b/git-base.sh
@@ -87,14 +87,14 @@ time_to_update() {
}
fetch_async() {
- if time_to_update; then
- record_timestamp
- fetch $debug &
- fi
+ fetch &
}
fetch() {
- git fetch --quiet > /dev/null 2>&1
+ if time_to_update; then
+ record_timestamp
+ git fetch --quiet > /dev/null 2>&1
+ fi
}
commit_short_sha() {