~edwargix/git.sr.ht

836a64c770c6803a1d768606640212209a41d0b4 — Drew DeVault 7 years ago fb449e2
Also link the post-update hook in repo create
1 files changed, 1 insertions(+), 0 deletions(-)

M gitsrht/blueprints/manage.py
M gitsrht/blueprints/manage.py => gitsrht/blueprints/manage.py +1 -0
@@ 61,6 61,7 @@ def create():

    subprocess.run(["git", "config", "srht.repo-id", str(repo.id)], cwd=repo.path)
    subprocess.run(["ln", "-s", post_update, os.path.join(repo.path, "hooks", "update")])
    subprocess.run(["ln", "-s", post_update, os.path.join(repo.path, "hooks", "post-update")])

    if another == "on":
        return redirect("/create?another")