summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustinas Stankevicius <justinas@justinas.me>2015-08-26 15:08:28 +0300
committerJustinas Stankevicius <justinas@justinas.me>2015-08-26 15:08:28 +0300
commit63ad303e52eeac7dc89b5f28150f0869e62eaf34 (patch)
tree983f8304919e3698695ea3c4089e26b77dcd05e8
parenta93a5552ccb967cfc3b036e4adcecd78dc22ae0f (diff)
downloadgit-sonar-63ad303e52eeac7dc89b5f28150f0869e62eaf34.tar.gz
git-sonar-63ad303e52eeac7dc89b5f28150f0869e62eaf34.zip
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 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
}