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
function xsync() {
local direct
is_yes "$(git config --get annex.direct)" && direct=1
git annex sync ${direct:+--content}
if is_yes "$(git config --get annex.direct)"; then
git annex sync --pull --no-commit --no-push --no-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
case "$CMD" in