Skip to content

Commit

Permalink
Give warning for git repository problems [fix #41]
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Sep 23, 2015
1 parent ac9dcfb commit 450a94c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions did/plugins/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def commits(self, user, options):
summary, 8 * " ", directory))
return commits
else:
log.error(errors.strip())
raise ReportError(
"Unable to check commits in '{0}'".format(self.path))
log.debug(errors.strip())
log.warn("Unable to check commits in '{0}'".format(self.path))
return []


# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def test_git_invalid():
try:
did.cli.main(INTERVAL)
except SystemExit:
pass
else:
raise RuntimeError("Expected failure")
raise RuntimeError("Expected warning only")

def test_git_non_existent():
""" Non-existent git repo """
Expand Down

0 comments on commit 450a94c

Please sign in to comment.