pxs ne requière plus la présence du remote origin

This commit is contained in:
Jephté Clain 2016-11-19 10:28:26 +04:00
parent 4a4094c493
commit 190519d968
1 changed files with 6 additions and 1 deletions

View File

@ -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 &&