summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index 4f32540f..8b1c588d 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -156,7 +156,10 @@ class PushInfo(object):
if flags & cls.DELETED:
from_ref = None
else:
- from_ref = Reference.from_path(remote.repo, from_ref_string)
+ if from_ref_string == "(delete)":
+ from_ref = None
+ else:
+ from_ref = Reference.from_path(remote.repo, from_ref_string)
# commit handling, could be message or commit info
old_commit = None