1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

Replace 000000 by empty commit

This commit is contained in:
Ondřej Caletka
2018-07-13 12:35:31 +02:00
parent ca433838db
commit d383fbbfc8

View File

@ -285,6 +285,9 @@ def update():
)
refname, against, revision = sys.argv[1:4]
if against == "0000000000000000000000000000000000000000":
against = get_head() # Empty commit
if refname != "refs/heads/master":
raise SystemExit("Nothing else except master branch is accepted here")
try: