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

Fix no reload on very first push to the repository

This commit is contained in:
Ondřej Caletka
2018-08-20 16:33:00 +02:00
parent 62e35c59d0
commit f07c84aa32
2 changed files with 3 additions and 2 deletions

View File

@ -479,7 +479,8 @@ def post_receive(stdin=sys.stdin):
if refname != "refs/heads/master":
continue
if against == "0000000000000000000000000000000000000000":
against = get_head() # Empty commit
# Empty commit
against = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
should_reconfig = [
f for f in get_altered_files(against, "ACDRU", revision)
if f.suffix == ".zone"