From 190519d968cc64a8a6a7829f4ec652b97d3e09b5 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Sat, 19 Nov 2016 10:28:26 +0400 Subject: [PATCH] =?UTF-8?q?pxs=20ne=20requi=C3=A8re=20plus=20la=20pr=C3=A9?= =?UTF-8?q?sence=20du=20remote=20origin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uproject | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uproject b/uproject index 9d0e14d..61f5a53 100755 --- a/uproject +++ b/uproject @@ -241,7 +241,12 @@ elif array_contains VCS_CMDS "$CMD"; then elif array_contains GITANNEX_CMDS "$CMD"; then function xsync() { if ! git_have_annex; then - git_commit -Al "Maj des fichiers" && git pull && git_push + setyesval offline "$UTOOLS_VCS_OFFLINE" + if git_commit -Al "Maj des fichiers"; then + [ -n "$offline" ] && return 0 + git_have_remote || return 0 + git pull && git_push + fi elif is_yes "$(git config --get annex.direct)"; then git annex add && git annex sync &&