Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit657cd7e

Browse files
authored
Merge pull request#498 from DoomHammer/try-git-dir
Use $GIT_DIR when set
2 parents58934b8 +26bb778 commit657cd7e

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
whilecurpath:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp