From 376de41b51b802e38dea234c253c67e128e32ba6 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 5 Jul 2020 14:15:28 +0200 Subject: [PATCH] git_auto_update: Allow changing remote url --- roles/git_auto_update/templates/update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/git_auto_update/templates/update.sh b/roles/git_auto_update/templates/update.sh index 48cede2..7291470 100644 --- a/roles/git_auto_update/templates/update.sh +++ b/roles/git_auto_update/templates/update.sh @@ -14,6 +14,7 @@ cd "$DEST"; if [ ! -d .git ]; then git clone --recurse-submodules "$REPO" "$DEST"; fi +git remote set-url origin "$REPO"; [ -z "$GPG_FINGERPRINT" ] || gpg --quiet --keyserver eu.pool.sks-keyservers.net --recv "$GPG_FINGERPRINT";