sync, push: Avoid trying to send individual files to special remotes configured with importtree=yes exporttree=no

That will always fail. It already skipped doing this when exporttree=yes.
This commit is contained in:
Joey Hess 2023-12-26 15:56:39 -04:00
parent 766dfc794a
commit 6d789c9c81
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 15 additions and 1 deletions

View file

@ -955,7 +955,7 @@ syncFile o ebloom rs af k = do
wantput r
| pushOption o == False && operationMode o /= SatisfyMode = return False
| Remote.readonly r || remoteAnnexReadOnly (Remote.gitconfig r) = return False
| isExport r = return False
| isExport r || isImport r = return False
| isThirdPartyPopulated r = return False
| otherwise = wantGetBy True (Just k) af (Remote.uuid r)
handleput lack inhere