diff --git a/uproject b/uproject index 9df4a0a..aab39db 100755 --- a/uproject +++ b/uproject @@ -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