pxs fait aussi git pull avec un dépôt sans annexe

This commit is contained in:
Jephté Clain 2015-11-19 10:31:04 +04:00
parent dca7bee1ec
commit c2d5eab6c1
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ COMMANDS
Sur un dépot où git-annex est activé, lancer 'git annex sync' si on est Sur un dépot où git-annex est activé, lancer 'git annex sync' si on est
en mode indirect ou 'git annex sync --content' si on est en mode direct. en mode indirect ou 'git annex sync --content' si on est en mode direct.
Sur un dépôt où git-annex n'est pas activé, faire l'équivalent des Sur un dépôt où git-annex n'est pas activé, faire l'équivalent des
commandes 'git add -A && git commit && git push' commandes 'git add -A && git commit && git pull && git push'
xcopy xcopy
xmove xmove
xget xget
@ -242,7 +242,7 @@ 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() {
if ! git_have_annex; then if ! git_have_annex; then
git_commit -A "Maj des fichiers" git_commit -Al "Maj des fichiers" && git pull && git_push
elif is_yes "$(git config --get annex.direct)"; then elif is_yes "$(git config --get annex.direct)"; then
git annex add && git annex add &&
git annex sync && git annex sync &&