améliorer pxs pour un dépôt en mode direct

This commit is contained in:
Jephté Clain 2015-09-26 11:51:23 +04:00
parent 2ce66e6717
commit 552e4ba981
1 changed files with 10 additions and 3 deletions

View File

@ -237,9 +237,16 @@ elif array_contains VCS_CMDS "$CMD"; then
elif array_contains GITANNEX_CMDS "$CMD"; then elif array_contains GITANNEX_CMDS "$CMD"; then
function xsync() { function xsync() {
local direct if is_yes "$(git config --get annex.direct)"; then
is_yes "$(git config --get annex.direct)" && direct=1 git annex sync --pull --no-commit --no-push --no-content &&
git annex sync ${direct:+--content} git annex add &&
git annex sync --no-pull --commit --no-push --no-content &&
git annex sync --no-pull --no-commit --no-push --content &&
git annex sync --no-pull --no-commit --push --no-content &&
git annex sync
else
git annex sync
fi
} }
use_ssh_wrapper use_ssh_wrapper
case "$CMD" in case "$CMD" in