git-annex/Remote
Joey Hess a32ff6cef0
adb: Avoid find failing with "Argument list too long"
The "+" argument only runs the command once, so is not safe to use. Using
";" instead would have been the simplest fix, but also the slowest.

Since my phone has an xargs that supports -0, I piped find to xargs
instead. Unsure how portable this will be, perhaps some android's don't
have xargs -0 or find -printf to send null terminated output.

The business with pipefail is necessary to make a failure of find cause the
import to fail. Probably this works on all androids, but if not, it will
probably just result in a failure of find being ignored. It would be
possible to make ignorefinderror just disable setting pipefail, but then
if some android has a shell that has pipefail enabled by default, ignorefinderror
would not work, so I kept the || true approach for that.

Sponsored-by: Max Thoursie on Patreon
2022-01-31 13:19:09 -04:00
..
Directory incremental hashing for fileRetriever 2021-08-13 15:43:29 -04:00
External convert Key to ShortByteString 2021-10-05 20:20:08 -04:00
Helper avoid no longer necessary piping of ssh stderr for p2pstdio 2022-01-03 12:54:40 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync add newtypes for QuickCheck to avoid LANG=C issues 2020-11-09 20:21:18 -04:00
WebDAV fix exporting when the file is in the top of the repo 2021-03-16 14:17:29 -04:00
Adb.hs adb: Avoid find failing with "Argument list too long" 2022-01-31 13:19:09 -04:00
BitTorrent.hs incremental verification for web special remote 2021-08-18 15:02:22 -04:00
Borg.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00
Bup.hs incremental verify for byteRetriever special remotes 2021-08-11 14:20:38 -04:00
Ddar.hs incremental verify for byteRetriever special remotes 2021-08-11 14:20:38 -04:00
Directory.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00
External.hs improve url download failure display 2021-09-01 15:33:38 -04:00
GCrypt.hs remove git-annex-shell compat code 2021-10-11 15:36:51 -04:00
Git.hs fix handling of corrupted data received from git remote 2022-01-07 13:25:33 -04:00
GitLFS.hs git-lfs gitlab interoperability fix 2021-11-10 13:51:11 -04:00
Glacier.hs Fix build with ghc 9.0.1 2021-12-08 15:08:02 -04:00
Hook.hs incremental verify for directory special remote 2021-08-16 16:51:33 -04:00
HttpAlso.hs incremental verification for gitlfs and httpalso 2021-08-18 15:17:10 -04:00
List.hs start borg special remote 2020-12-18 16:03:51 -04:00
P2P.hs negotiate P2P protocol version for tor remotes 2021-10-11 15:58:51 -04:00
Rsync.hs incremental verify for directory special remote 2021-08-16 16:51:33 -04:00
S3.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00
Tahoe.hs plumb VerifyConfig into retrieveKeyFile 2021-08-17 12:43:13 -04:00
Web.hs improve url download failure display 2021-09-01 15:33:38 -04:00
WebDAV.hs factor out IncrementalHasher from IncrementalVerifier 2021-11-09 12:33:22 -04:00