From fe632d6351c97266597d57f32ee109731886be22 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 8 Apr 2024 15:34:25 +0200 Subject: Adding this --- post-commit.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/post-commit.tmpl b/post-commit.tmpl index e40bef2..ea90110 100644 --- a/post-commit.tmpl +++ b/post-commit.tmpl @@ -1,3 +1,9 @@ #!/usr/bin/env bash -{{ }} +remote_url = {{ mirror_url }} + +if git ls-remote $remote_url; then + echo "mirro_foo" > /tmp/mirror_foo +else + echo "mirror_bat" > /tmp/mirror_baz +fi -- cgit v1.2.3