Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / remote / git-configure
diff --git a/remote/git-configure b/remote/git-configure
new file mode 100755 (executable)
index 0000000..c0c9c9e
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/remote/lib.sh
+
+git remote rm host || true
+git remote add host $vm_host:src/vm
+git config --replace remote.host.push HEAD:refs/remotes/master
+git remote rm local || true
+git remote add local $vm_fqdn:src/vm
+git config --replace remote.local.push HEAD:refs/remotes/master
+git submodule update --init