diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-26 14:26:30 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-26 14:26:30 +0100 |
commit | 6aeb81d26199815a1518b2aa7aabb4ed80adc3fb (patch) | |
tree | 544badd4c0bfb832f8b42ab162b5e0393839b30b | |
parent | 1faeef884d3660ca4048892fef0ef78997aad821 (diff) | |
parent | 63ad303e52eeac7dc89b5f28150f0869e62eaf34 (diff) | |
download | git-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-x | radar-base.sh | 2 |
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 } |