summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-02-23 16:45:56 +0000
committerMichael Allen <michael@michaelallen.io>2015-02-23 16:45:56 +0000
commit43fea9ca9a7ab2d0e4a774eab7c1b13d49f70cc8 (patch)
tree492892a1dee0ffb8068ea5c2a0172e67aaf0b67c /git-base.sh
parentf0793d50ed51a056f5cb38b1abda360a9912b301 (diff)
downloadgit-sonar-43fea9ca9a7ab2d0e4a774eab7c1b13d49f70cc8.tar.gz
git-sonar-43fea9ca9a7ab2d0e4a774eab7c1b13d49f70cc8.zip
force more work into background task
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() {