summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-02-23 16:35:27 +0000
committerMichael Allen <michael@michaelallen.io>2015-02-23 16:35:27 +0000
commit1206f6ad808be4becb593bd447caf4dc4e44cedb (patch)
tree90e2e5537c8c692d9968380963bfc1761ea45541
parent0e5f04c68674f5f775b0973fa8b2bde4ff1eab4f (diff)
downloadgit-sonar-1206f6ad808be4becb593bd447caf4dc4e44cedb.tar.gz
git-sonar-1206f6ad808be4becb593bd447caf4dc4e44cedb.zip
quieten the stat call
-rwxr-xr-xgit-base.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-base.sh b/git-base.sh
index 7024161..254a306 100755
--- a/git-base.sh
+++ b/git-base.sh
@@ -62,7 +62,7 @@ record_timestamp() {
timestamp() {
if is_repo; then
- echo "$(stat -f%m "$(dot_git)/lastupdatetime" || echo "0")"
+ echo "$(stat -f%m "$(dot_git)/lastupdatetime" 2>/dev/null || echo "0")"
fi
}