summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-09-28 15:02:53 +0200
committerGitHub <noreply@github.com>2017-09-28 15:02:53 +0200
commita5f034355962c5156f20b4de519aae18478b413a (patch)
tree3c9cbcfa01017b309faa61093c202f66c756833e /git/remote.py
parentfb43244026643e540a2fac35b2997c6aa0e139c4 (diff)
parentd1c40f46bd547be663b4cd97a80704279708ea8a (diff)
downloadgitpython-a5f034355962c5156f20b4de519aae18478b413a.tar.gz
Merge pull request #654 from vathpela/worktrees
worktrees: make non-packed refs also work correctly.
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index c3a51744..ff72e268 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -653,7 +653,7 @@ class Remote(LazyMixin, Iterable):
continue
# read head information
- with open(osp.join(self.repo.git_dir, 'FETCH_HEAD'), 'rb') as fp:
+ with open(osp.join(self.repo.common_dir, 'FETCH_HEAD'), 'rb') as fp:
fetch_head_info = [l.decode(defenc) for l in fp.readlines()]
l_fil = len(fetch_info_lines)