summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-04-08 15:34:25 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-04-08 15:34:25 +0200
commitfe632d6351c97266597d57f32ee109731886be22 (patch)
tree6a79bac7e9162432ef47e5074029e16ce59a1c35
parentd7b6b820afd2ffc1e71938bfaea9265a8c9cd51c (diff)
Adding this
-rw-r--r--post-commit.tmpl8
1 files changed, 7 insertions, 1 deletions
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