Skip to content

Commit 26bb778

Browse files
committed
use $GIT_DIR when set
1 parent 58934b8 commit 26bb778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/repo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(self, path=None, odbt=DefaultDBType, search_parent_directories=Fals
141141
self.working_dir = None
142142
self._working_tree_dir = None
143143
self.git_dir = None
144-
curpath = epath
144+
curpath = os.getenv('GIT_DIR', epath)
145145

146146
# walk up the path to find the .git dir
147147
while curpath:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy