Commit graph

35093 commits

Author SHA1 Message Date
Joey Hess
d8a0b09506
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-13 15:14:22 -04:00
Joey Hess
dc672863c3
init: Install working hook scripts when run on a crippled filesystem and on Windows 2019-08-13 15:14:17 -04:00
Joey Hess
b36229905f
avoid redundant test pass on crippled filesystem
v7 unlocked uses an adjusted branch on crippled filesystem, so is nearly
identical to the previous test pass.
2019-08-13 15:11:49 -04:00
yarikoptic
05d85c757a Added a comment 2019-08-13 18:15:36 +00:00
Joey Hess
88c61dea00
typo 2019-08-13 13:36:52 -04:00
Joey Hess
4a4a5dd5f9
comment 2019-08-13 13:36:33 -04:00
Joey Hess
386c0ce90a
close handle so windows can stat the file
windows cannot stat a file that another process has open, which caused
this to crash with an exception
2019-08-13 13:26:25 -04:00
Joey Hess
3049271fd0
fix build warnings 2019-08-13 13:12:41 -04:00
Joey Hess
cfd0b4108e
avoid windows build warning 2019-08-13 13:10:33 -04:00
Joey Hess
a95de6bcc7
reply 2019-08-13 12:54:46 -04:00
Joey Hess
8e92eaf0ab
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-13 12:35:33 -04:00
Joey Hess
5004381dd9
improve error display when storing to an export/import remote fails
Prompted by the test suite on windows failing to with "export foo failed"
and no information about what went wrong.

Note that only storeExportWithContentIdentifier has been converted.
storeExport still returns a Bool and so exceptions may be hidden.

However, storeExportWithContentIdentifier has many more failure modes,
since it needs to avoid overwriting modified files. So it's more
important it have better error display.
2019-08-13 12:05:00 -04:00
yarikoptic
0e856fd3c2 Original report 2019-08-13 15:53:37 +00:00
Ilya_Shlyakhter
070fbd693e added bug report where git-annex-sync seems not idempotent 2019-08-12 20:50:07 +00:00
yarikoptic
88a78b7d90 Added a comment 2019-08-12 20:15:02 +00:00
Horus
e1e74ccd8d Added a comment 2019-08-12 07:40:57 +00:00
hey@ccaff89baaef1ba51f67eb65fb5ded08528ccecd
f4ae100949 2019-08-12 03:16:52 +00:00
Joey Hess
05d52f9699
fix display of http exceptions 2019-08-10 11:09:25 -04:00
Joey Hess
5bd515960c
devblog 2019-08-09 15:41:10 -04:00
Joey Hess
2af9ad1808
comment 2019-08-09 15:40:23 -04:00
Joey Hess
696ab80d93
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-09 15:37:12 -04:00
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
Joey Hess
5798d063b0
make test_export_import work on adjusted branch 2019-08-09 14:00:22 -04:00
Joey Hess
b87ea12b6b
git-annex merge branch
* merge: When run with a branch parameter, merges from that branch.
  This is especially useful when using an adjusted branch, because
  it applies the same adjustment to the branch before merging it.
2019-08-09 13:21:15 -04:00
Joey Hess
b90ee6dc52
test: Add pass using adjusted unlocked branch
On second thought, the extra time running the test suite is worth it.
It will be gained back once we finally get rid of direct mode.

There are two failing tests, same two that have been failing on windows
(though the failure does not look identical). So this should also spare me
the Windows VM while fixing.
2019-08-09 11:34:10 -04:00
Horus
d174feeb0f Added a comment 2019-08-09 07:51:07 +00:00
Lukey
aec95e48df Added a comment: HOWTO 2019-08-08 20:21:11 +00:00
Joey Hess
69a5b5a27f
bug report 2019-08-08 15:11:56 -04:00
Joey Hess
fbc270a3f0
disable 2 failing tests on windows
I have not tracked down why these fail on windows, but they
mostly test git-annex-shell anyway, and windows rarely acts as a
ssh server.
2019-08-08 14:58:40 -04:00
Joey Hess
57b24b2510
avoid pushing the special remote to origin
The sync is only to sync up the adjusted branch, not other info.
Since many tests use their own special remote named "foo",
the push broke later tests.
2019-08-08 14:33:46 -04:00
Joey Hess
298812a353
use separate main repo dir for each test suite pass
This way a failure to clean up the main repo dir from a previous pass
can't result in reusing that repo, which won't be configured right for the
current pass.
2019-08-08 14:29:28 -04:00
Joey Hess
70b71bf660
have init --version fail when repo is already initialized with other version
init: When the repo is already initialized, and --version requests a
different version, error out rather than silently not changing the version.
2019-08-08 14:13:02 -04:00
Joey Hess
65f34ffb4c
fix windows build 2019-08-08 13:41:56 -04:00
Joey Hess
022875274a
bug 2019-08-08 13:34:58 -04:00
Joey Hess
9e230cd448
work around adjusted unlocked branch problem in test suite 2019-08-08 13:28:04 -04:00
Joey Hess
aac0e187c5
don't test rsync special remote on windows
git-annex no longer ships with rsync on windows so this will generally
fail
2019-08-08 12:37:25 -04:00
Joey Hess
868942e19b
fix unused module import warnings when building on windows 2019-08-08 12:18:53 -04:00
Joey Hess
81ec673f9b
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-08 11:58:57 -04:00
Joey Hess
60d72df9c9
remove trailing comma 2019-08-08 11:58:38 -04:00
Ilya_Shlyakhter
5ceff99573 removed 2019-08-08 15:08:45 +00:00
Ilya_Shlyakhter
e1d97a92db removed 2019-08-08 15:05:48 +00:00
Ilya_Shlyakhter
8ce06e4a8f removed 2019-08-08 15:05:23 +00:00
Ilya_Shlyakhter
7421e214af Added a comment: Git for Windows installation -- support for symlinks 2019-08-08 15:04:40 +00:00
Ilya_Shlyakhter
8bf7a44293 Added a comment: Git for Windows installation -- support for symlinks 2019-08-08 15:04:32 +00:00
Ilya_Shlyakhter
ae4eade74e Added a comment: Git for Windows installation -- support for symlinks 2019-08-08 15:04:25 +00:00
Ilya_Shlyakhter
30c084f792 Added a comment: Git for Windows installation -- support for symlinks 2019-08-08 15:04:08 +00:00
Joey Hess
002bc7215d
only require fixed silently on windows 2019-08-07 18:04:29 -04:00
Joey Hess
7598cc6362
fixed 2019-08-07 18:00:49 -04:00
Joey Hess
3adc251f9d
Build with silently-1.2.5.1 on Windows; the old one used "NUL" which is not supported with recent versions of ghc. 2019-08-07 17:42:16 -04:00
Joey Hess
ec64a08b2b
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-07 14:05:32 -04:00