diff options
-rw-r--r-- | post-commit.tmpl | 8 |
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 |