git-annex/Remote
Joey Hess f27c5db5c5
avoid rsync failing with a permissions error
The test suite was intermittently failing with rsync complaining it
could not write to dest.

get foo (from origin...)
SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77
             20 100%    0.00kB/s    0:00:00  ^M             20 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=0/1)
(from origin...)
SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77
             20 100%    0.00kB/s    0:00:00  ^M             20 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=0/1)
rsync: open "/home/joey/src/git-annex/.t/tmprepo1103/.git/annex/tmp/SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]

It seems that the first rsync actually transferred the file, but then for some
reason git-annex thinks it failed, so it retries. The second rsync then fails
because the first rsync copied the file mode over and so the file is not
writable now.

So, this fixes that problem, but leaves open the question of why git-annex
would think rsync failed when it wrote the file and didn't output any
error message. Possibly a bug in rsyncProgress that either hides an
error message, or somehow makes rsync unhappy?
2019-08-09 15:26:58 -04:00
..
Directory update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
External make everything build again after ByteString Key changes 2019-01-11 16:39:46 -04:00
Helper make metered more generic 2019-06-25 12:33:36 -04:00
Rsync avoid rsync/gcrypt ssh startup delay with -J 2019-06-13 11:16:38 -04:00
WebDAV update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Adb.hs fix storeExportWithContentIdentifier 2019-04-09 19:15:20 -04:00
BitTorrent.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Bup.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Ddar.hs Corrected some license statements 2019-07-28 14:27:33 -04:00
Directory.hs improve docs about removeExportDirectory 2019-05-28 11:16:01 -04:00
External.hs better indicate when special remotes do not support renameExport 2019-03-11 12:53:24 -04:00
GCrypt.hs support using gcrypt with git-lfs special remote 2019-08-05 13:43:45 -04:00
Git.hs avoid rsync failing with a permissions error 2019-08-09 15:26:58 -04:00
GitLFS.hs support using gcrypt with git-lfs special remote 2019-08-05 13:43:45 -04:00
Glacier.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Hook.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
List.hs skeleton git-lfs special remote 2019-08-01 15:30:12 -04:00
P2P.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Rsync.hs avoid rsync/gcrypt ssh startup delay with -J 2019-06-13 11:16:38 -04:00
S3.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00
Tahoe.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Web.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
WebDAV.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00