Skip to content

Commit

Permalink
Avoid crash if someone wants to purge a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
misery committed Jul 4, 2024
1 parent 9b3105f commit 028e0fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/mercurial_git_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,9 @@ class GitRevision(BaseRevision):
"""Class to represent information of changeset."""
@staticmethod
def fetch(node, base, refs=None, skipKnown=True):
if node == '0000000000000000000000000000000000000000':
return []

if base == '0000000000000000000000000000000000000000':
rev = node
else:
Expand Down

0 comments on commit 028e0fc

Please sign in to comment.