pxs transfert les données aussi en mode direct

This commit is contained in:
Jephté Clain 2015-09-03 09:04:26 +04:00
parent 540132c918
commit 9dcd60b244
1 changed files with 7 additions and 1 deletions

View File

@ -236,10 +236,16 @@ elif array_contains VCS_CMDS "$CMD"; then
"vcs_$CMD" "$@"
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}
}
use_ssh_wrapper
case "$CMD" in
annex) git annex "$@";;
xcopy|xmove|xget) git annex "${CMD#x}" "$@" && git annex sync;;
xsync) xsync;;
xcopy|xmove|xget) git annex "${CMD#x}" "$@" && xsync;;
xinitial) git_annex_initial "$@";;
*) git annex "${CMD#x}" "$@";;
esac