Skip to content

Commit

Permalink
fixed travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed May 11, 2018
1 parent 761aec8 commit 4e62b64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ def run_tests(self):

try:
import git
repo = git.Repo('.')
try:
repo = git.Repo('.')
except git.exc.InvalidGitRepositoryError:
raise ImportError()

if repo.bare:
raise ImportError()

Expand Down

0 comments on commit 4e62b64

Please sign in to comment.