summaryrefslogtreecommitdiff
path: root/git/refs/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/refs/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/refs/remote.py')
-rw-r--r--git/refs/remote.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/git/refs/remote.py b/git/refs/remote.py
index ef69b5db..0164e110 100644
--- a/git/refs/remote.py
+++ b/git/refs/remote.py
@@ -37,6 +37,10 @@ class RemoteReference(Head):
# and delete remainders manually
for ref in refs:
try:
+ os.remove(osp.join(repo.common_dir, ref.path))
+ except OSError:
+ pass
+ try:
os.remove(osp.join(repo.git_dir, ref.path))
except OSError:
pass