Skip to content

Commit

Permalink
Merge pull request #8 from justinas/master
Browse files Browse the repository at this point in the history
Suppress the 'Fatal: not a git repository' errors
  • Loading branch information
michaeldfallen committed Aug 26, 2015
2 parents 1faeef8 + 63ad303 commit 6aeb81d
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 6aeb81d

Please sign in to comment.