sync --no-pull and --no-push affect download and upload of content
The man page is somewhat vague about this, but I do think it was a bug that these options didn't alreay behave that way. The options are documented to disable imports and exports, which is the same operations just with a special remote that uses trees. The real motivation for this is that I'm adding git-annex pull and git-annex push, and I want these options to turn off the equivilant of those commands. And git-annex pull will certianly download and push upload. Sponsored-by: Nicholas Golder-Manning on Patreon
This commit is contained in:
parent
212442dd9b
commit
2e984c51b6
2 changed files with 7 additions and 3 deletions
|
@ -866,7 +866,8 @@ syncFile ebloom rs af k = do
|
|||
return (got || not (null putrs))
|
||||
where
|
||||
wantget have inhere = allM id
|
||||
[ pure (not $ null have)
|
||||
[ pure (maybe True pullOption o)
|
||||
, pure (not $ null have)
|
||||
, pure (not inhere)
|
||||
, wantGet True (Just k) af
|
||||
]
|
||||
|
@ -879,6 +880,7 @@ syncFile ebloom rs af k = do
|
|||
next $ return True
|
||||
|
||||
wantput r
|
||||
| pushOption o = Just False = return False
|
||||
| Remote.readonly r || remoteAnnexReadOnly (Remote.gitconfig r) = return False
|
||||
| isThirdPartyPopulated r = return False
|
||||
| otherwise = wantGetBy True (Just k) af (Remote.uuid r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue