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

Commit7da0303

Browse files
committed
try to be compatible to python2.7
1 parent364a7c9 commit7da0303

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/repo/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ def __init__(self, path=None, odbt=GitCmdObjectDB, search_parent_directories=Fal
150150
# the current working directory is regarded as the top level of your working tree.
151151
self._working_tree_dir=os.path.dirname(self.git_dir)
152152
ifos.environ.get('GIT_COMMON_DIR')isNone:
153-
self._working_tree_dir=self.config_reader("repository").get(
154-
'core','worktree',fallback=self._working_tree_dir)
153+
gitconf=self.config_reader("repository")
154+
ifgitconf.has_option('core','worktree'):
155+
self._working_tree_dir=gitconf.get('core','worktree')
155156
self._working_tree_dir=os.getenv('GIT_WORK_TREE',self._working_tree_dir)
156157
break
157158

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp