From dca7bee1ecbc671832b019e497ba058bbb6bde44 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Thu, 19 Nov 2015 10:24:40 +0400 Subject: [PATCH] =?UTF-8?q?pxs=20fonctionne=20pour=20les=20d=C3=A9p=C3=B4t?= =?UTF-8?q?=20normaux=20comme=20pci=20-A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uproject | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/uproject b/uproject index c6c2284..66be44b 100755 --- a/uproject +++ b/uproject @@ -78,11 +78,15 @@ COMMANDS xadd xunlock xdrop - xsync xwhereis xwebapp Chacune de ces commandes est un raccourci vers la commande correspondante de git annex, sans le préfixe 'x' + xsync + Sur un dépot où git-annex est activé, lancer 'git annex sync' si on est + en mode indirect ou 'git annex sync --content' si on est en mode direct. + Sur un dépôt où git-annex n'est pas activé, faire l'équivalent des + commandes 'git add -A && git commit && git push' xcopy xmove xget @@ -237,7 +241,9 @@ elif array_contains VCS_CMDS "$CMD"; then elif array_contains GITANNEX_CMDS "$CMD"; then function xsync() { - if is_yes "$(git config --get annex.direct)"; then + if ! git_have_annex; then + git_commit -A "Maj des fichiers" + elif is_yes "$(git config --get annex.direct)"; then git annex add && git annex sync && git annex sync --content &&