diff options
author | Justinas Stankevicius <justinas@justinas.me> | 2015-08-26 15:08:28 +0300 |
---|---|---|
committer | Justinas Stankevicius <justinas@justinas.me> | 2015-08-26 15:08:28 +0300 |
commit | 63ad303e52eeac7dc89b5f28150f0869e62eaf34 (patch) | |
tree | 983f8304919e3698695ea3c4089e26b77dcd05e8 /radar-base.sh | |
parent | a93a5552ccb967cfc3b036e4adcecd78dc22ae0f (diff) | |
download | git-sonar-63ad303e52eeac7dc89b5f28150f0869e62eaf34.tar.gz git-sonar-63ad303e52eeac7dc89b5f28150f0869e62eaf34.zip |
Suppress the 'Fatal: not a git repository' errors
Diffstat (limited to '')
-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 787d7a5..1f14144 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 } |