Skip to content

Commit

Permalink
Merge pull request airspeed-velocity#642 from yarikoptic/bf-516
Browse files Browse the repository at this point in the history
BUG: to decide if Git repo, just check if .git exists
  • Loading branch information
pv authored May 24, 2018
2 parents 285f9ac + faaea14 commit f1ec1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asv/plugins/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, url, mirror_path):
@classmethod
def is_local_repo(cls, path):
return os.path.isdir(path) and (
os.path.isdir(os.path.join(path, '.git')) or
os.path.exists(os.path.join(path, '.git')) or
os.path.isdir(os.path.join(path, 'objects')))

@classmethod
Expand Down

0 comments on commit f1ec1c1

Please sign in to comment.