summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-26 14:26:30 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-26 14:26:30 +0100
commit6aeb81d26199815a1518b2aa7aabb4ed80adc3fb (patch)
tree544badd4c0bfb832f8b42ab162b5e0393839b30b
parent1faeef884d3660ca4048892fef0ef78997aad821 (diff)
parent63ad303e52eeac7dc89b5f28150f0869e62eaf34 (diff)
downloadgit-sonar-6aeb81d26199815a1518b2aa7aabb4ed80adc3fb.tar.gz
git-sonar-6aeb81d26199815a1518b2aa7aabb4ed80adc3fb.zip
Merge pull request #8 from justinas/master
Suppress the 'Fatal: not a git repository' errors
-rwxr-xr-xradar-base.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/radar-base.sh b/radar-base.sh
index 63b2b98..1bbefbd 100755
--- a/radar-base.sh
+++ b/radar-base.sh
@@ -95,7 +95,7 @@ fetch() {
commit_short_sha() {
if is_repo; then
- printf '%s' "$(git rev-parse --short HEAD)"
+ printf '%s' "$(git rev-parse --short HEAD 2>/dev/null)"
fi
}