X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=vm_remote;h=8fe05610ddbd7832b113319595ec92aab70f0b02;hb=a0db32961c20b1a9a404d28a8ba4932808f386af;hp=19ce8d4cb654f7de6d6d8ee9c94fa974dee6bda6;hpb=fe76c838090f262ec477c6a73d1bf9d988033b56;p=lhc%2Fateliers.git diff --git a/vm_remote b/vm_remote index 19ce8d4..8fe0561 100755 --- a/vm_remote +++ b/vm_remote @@ -28,10 +28,10 @@ rule_git_config () { # DESCRIPTION: configure le .git local pour bien pousser cd "$tool" git remote rm host || true git remote add host $vm_host:tool/vm - git config --replace remote.host.push HEAD:refs/heads/origin + git config --replace remote.host.push HEAD:refs/remotes/master git remote rm hosted || true git remote add hosted root@$vm_fqdn:tool/vm - git config --replace remote.hosted.push HEAD:refs/heads/origin + git config --replace remote.hosted.push HEAD:refs/remotes/master ) } rule_git_push () { # SYNTAX: {host|hosted} $git_push_options @@ -42,6 +42,9 @@ rule_git_push () { # SYNTAX: {host|hosted} $git_push_options rule_ssh () { "$tool"/vm_ssh $vm_fqdn "$@" } +rule_mosh () { + mosh --ssh="$tool/vm_ssh $*" $vm_fqdn + } rule__ssh_known_hosts_update () { rule ssh \ -o StrictHostKeyChecking=no \