Skip to content

Commit

Permalink
Satisfy flake8 requirement related to #1000
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 11, 2020
1 parent 2d47232 commit bdd4368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/repo/fun.py
Expand Up @@ -35,7 +35,7 @@ def is_git_dir(d):
There is the unlikely danger to throw if we see directories which just look like a worktree dir,
but are none."""
if osp.isdir(d):
if (osp.isdir(osp.join(d, 'objects')) or os.environ.has_key('GIT_OBJECT_DIRECTORY')) \
if (osp.isdir(osp.join(d, 'objects')) or 'GIT_OBJECT_DIRECTORY' in os.environ) \
and osp.isdir(osp.join(d, 'refs')):
headref = osp.join(d, 'HEAD')
return osp.isfile(headref) or \
Expand Down

0 comments on commit bdd4368

Please sign in to comment.