From 63ad303e52eeac7dc89b5f28150f0869e62eaf34 Mon Sep 17 00:00:00 2001 From: Justinas Stankevicius Date: Wed, 26 Aug 2015 15:08:28 +0300 Subject: [PATCH] Suppress the 'Fatal: not a git repository' errors --- radar-base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }