Skip to content

Commit 644f753

Browse files
committed
Revert "When using GIT_OBJECT_DIRECTORY, don't require presence of 'objects' subdirectory"
This reverts commit eb792ea. Seems to break CI Related to #1000
1 parent 4b6d488 commit 644f753

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎git/repo/fun.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def is_git_dir(d):
3535
There is the unlikely danger to throw if we see directories which just look like a worktree dir,
3636
but are none."""
3737
if osp.isdir(d):
38-
if (osp.isdir(osp.join(d, 'objects')) or os.environ.has_key('GIT_OBJECT_DIRECTORY')) \
39-
and osp.isdir(osp.join(d, 'refs')):
38+
if osp.isdir(osp.join(d, 'objects')) and osp.isdir(osp.join(d, 'refs')):
4039
headref = osp.join(d, 'HEAD')
4140
return osp.isfile(headref) or \
4241
(osp.islink(headref) and

0 commit comments

Comments
 (0)