améliorer pxs pour un dépôt en mode direct
This commit is contained in:
parent
2ce66e6717
commit
552e4ba981
13
uproject
13
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
|
||||
|
|
Loading…
Reference in New Issue