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:
@ -479,7 +479,8 @@ def post_receive(stdin=sys.stdin):
|
|||||||
if refname != "refs/heads/master":
|
if refname != "refs/heads/master":
|
||||||
continue
|
continue
|
||||||
if against == "0000000000000000000000000000000000000000":
|
if against == "0000000000000000000000000000000000000000":
|
||||||
against = get_head() # Empty commit
|
# Empty commit
|
||||||
|
against = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
|
||||||
should_reconfig = [
|
should_reconfig = [
|
||||||
f for f in get_altered_files(against, "ACDRU", revision)
|
f for f in get_altered_files(against, "ACDRU", revision)
|
||||||
if f.suffix == ".zone"
|
if f.suffix == ".zone"
|
||||||
|
@ -328,7 +328,7 @@ def test_post_receive(git_dir):
|
|||||||
git_dir.chdir()
|
git_dir.chdir()
|
||||||
head = dzonegit.get_head()
|
head = dzonegit.get_head()
|
||||||
revisions = "{} {} refs/heads/master\n".format(
|
revisions = "{} {} refs/heads/master\n".format(
|
||||||
"4b825dc642cb6eb9a060e54bf8d69288fbee4904",
|
"0000000000000000000000000000000000000000",
|
||||||
head,
|
head,
|
||||||
)
|
)
|
||||||
stdin = StringIO(revisions)
|
stdin = StringIO(revisions)
|
||||||
|
Reference in New Issue
Block a user