Skip to content

Commit

Permalink
Suppress the 'Fatal: not a git repository' errors
Browse files Browse the repository at this point in the history
  • Loading branch information
justinas committed Aug 26, 2015
1 parent a93a555 commit 63ad303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radar-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 63ad303

Please sign in to comment.