Commit graph

22475 commits

Author SHA1 Message Date
https://www.google.com/accounts/o8/id?id=AItOawm_YXzEdPHzbSGVwtmTR7g1BqDtTnIBB5s
d92a1f7122 Added a comment: File immutability 2015-01-07 12:06:15 +00:00
http://joeyh.name/
6f94ac268e Added a comment 2015-01-07 02:41:21 +00:00
http://joeyh.name/
ddf8b02cbb Added a comment 2015-01-07 02:37:25 +00:00
Joey Hess
6461de1335 Merge branch 'master' of ssh://git-annex.branchable.com 2015-01-06 22:36:45 -04:00
http://joeyh.name/
730225034f Added a comment 2015-01-07 02:35:46 +00:00
Joey Hess
b84070b5e9 note about windows path length issues with larger hashes 2015-01-06 22:33:57 -04:00
Joey Hess
f9445ff95a retitle 2015-01-06 22:30:02 -04:00
Joey Hess
44c9714fdf handle sync's use of setCurrentDirectory to work with relative paths
I think this is the last problimatic setCurrentDirectory. I also audited
for extrnal commands that git-annex might run with cwd = foo, and did not
find any that were passed any FilePath that might be absolute.
2015-01-06 22:23:04 -04:00
Joey Hess
676ef32547 Merge branch 'master' into relativepaths 2015-01-06 21:41:25 -04:00
Joey Hess
adefcf189a Bugfix: A file named HEAD in the work tree could confuse some git commands run by git-annex. 2015-01-06 21:41:21 -04:00
Joey Hess
184ad45b42 Merge branch 'master' into relativepaths 2015-01-06 21:10:01 -04:00
Joey Hess
d7f1449b2b fix view generation code to work when run in a subdirectory; no longer needs to setCurrentDirectory to top of repo 2015-01-06 21:01:05 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmwjQzWgiD7_I3zw-_91rMRf_6qoThupis
39849c5455 removed 2015-01-06 23:00:26 +00:00
Joey Hess
858d776352 Merge branch 'master' into relativepaths
Conflicts:
	Locations.hs
	debian/changelog
2015-01-06 19:00:01 -04:00
Joey Hess
9d75709bf7 build fix 2015-01-06 18:59:13 -04:00
Joey Hess
b97486bc55 Merge branch 'master' of ssh://git-annex.branchable.com 2015-01-06 18:58:07 -04:00
Joey Hess
965e106f24 made parentDir return a Maybe FilePath; removed most uses of it
parentDir is less safe than takeDirectory, especially when working
with relative FilePaths. It's really only useful in loops that
want to terminate at /

This commit was sponsored by Audric SCHILTKNECHT.
2015-01-06 18:55:56 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlcfH7xkyz1kyG_neK4GcFFfFWuIY7l_6A
db65b16f65 Added a comment: large scale rewrite tips 2015-01-06 22:55:20 +00:00
etset
e779d40f3c Added a comment: Still not working 2015-01-06 22:48:18 +00:00
Joey Hess
d09a198ec0 update 2015-01-06 18:02:56 -04:00
Joey Hess
add35d9593 Merge branch 'master' of ssh://git-annex.branchable.com 2015-01-06 18:00:53 -04:00
Joey Hess
518d3a5ba4 debblugh 2015-01-06 18:00:42 -04:00
Joey Hess
b33a51578f remove obsolete comment about a fixed bug to avoid confusion. 2015-01-06 18:00:17 -04:00
http://joeyh.name/
671f66509f Added a comment 2015-01-06 21:59:15 +00:00
Joey Hess
c0f2b992ed Generate shorter keys for WORM and URL, avoiding keys that are longer than used for SHA256, so as to not break on systems like Windows that have very small maximum path length limits. 2015-01-06 17:58:57 -04:00
Joey Hess
8a1c5956eb absolute path to index file; test suite passes
There are still known problems; for example git annex view a=b fails when
run in a subdir of the repo.
2015-01-06 17:34:02 -04:00
Joey Hess
d44b28437d git-hash-object needs absolute files (git bug)
A relative path to a file makes it fail. I am pretty sure this is a git
bug; workaround it.
2015-01-06 17:33:29 -04:00
Joey Hess
d8a2f658dd direct mode merge relative path trickiness
This fixes 9 test suite failures. There are some tricky things going on
with the paths to the index file, and git's working directory, which
are hard to get right with relative paths. So, I switched back to absolute
here, at least for now.

Only 2 test suite failures remain on this branch, but there are other
potential problems the test suite doesn't catch. Including some calls to
setCurrentDirectory -- I was wrong and git-annex does do that in a few
places, like when generating a view.
2015-01-06 17:18:12 -04:00
http://joeyh.name/
aab8b4fc58 Added a comment 2015-01-06 20:51:20 +00:00
Joey Hess
82f667e7f2 git repo path may be relative, so don't assume absolute any more
Fixes 6 test failures.
2015-01-06 16:32:44 -04:00
Joey Hess
cd865c3b8f Switch to using relative paths to the git repository.
This allows the git repository to be moved while git-annex is running in
it, with fewer problems.

On Windows, this avoids some of the problems with the absurdly small
MAX_PATH of 260 bytes. In particular, git-annex repositories should
work in deeper/longer directory structures than before. See
http://git-annex.branchable.com/bugs/__34__git-annex:_direct:_1_failed__34___on_Windows/

There are several possible ways this change could break git-annex:

1. If it changes its working directory while it's running, that would
   be Bad News. Good news everyone! git-annex never does so. It would also
   break thread safety, so all such things were stomped out long ago.

2. parentDir "." -> "" which is not a valid path. I had to fix one
   instace of this, and I should probably wipe all calls to parentDir out
   of the git-annex code base; it was never a good idea.

3. Things like relPathDirToFile require absolute input paths,
   and code assumes that the git repo path is absolute and passes it to it
   as-is. In the case of relPathDirToFile, I converted it to not make
   this assumption.

Currently, the test suite has 16 failures.
2015-01-06 16:19:41 -04:00
http://joeyh.name/
6213a69421 Added a comment 2015-01-06 19:18:26 +00:00
Joey Hess
550f269828 now I know why the test suite failed on the autobuilder.. MAX_PATH 2015-01-06 14:52:43 -04:00
Joey Hess
c15fc92c16 try to avoid Windows MAX_PATH limit, by using \\?\ prefix on git repo path 2015-01-06 14:50:15 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmwjQzWgiD7_I3zw-_91rMRf_6qoThupis
afff020ae8 Added a comment 2015-01-06 18:01:40 +00:00
Joey Hess
ae14354686 this comment seems to be A) useless or B) very stealth spam 2015-01-06 13:59:49 -04:00
Joey Hess
0724cd8caa comment 2015-01-06 13:59:13 -04:00
http://joeyh.name/
d2ff5e9766 Added a comment 2015-01-06 17:43:45 +00:00
http://joeyh.name/
22594da0c5 Added a comment 2015-01-06 17:41:45 +00:00
Joey Hess
b6acb2e22b pass pie options to C compiler, not just to linker 2015-01-06 13:16:32 -04:00
etset
343a07b303 Added a comment: Same for me 2015-01-06 12:45:25 +00:00
http://inkwell.za.net/
2b19ae9e38 Added a comment: Logfile with errors 2015-01-06 11:43:13 +00:00
gio
07b5aa4a6b Added a comment 2015-01-06 10:07:50 +00:00
gio
9037b783d4 2015-01-06 09:57:42 +00:00
https://www.google.com/accounts/o8/id?id=AItOawm_YXzEdPHzbSGVwtmTR7g1BqDtTnIBB5s
9b99fbb50e Added a comment: Over-long pathnames? 2015-01-06 09:41:03 +00:00
battykt
f26f7b117d Added a comment: Re:How To Permanently Delete a File 2015-01-06 07:48:14 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkGCmVc5qIJaQQgG82Hc5zzBdAVdhe2JEM
93fab9b571 Added a comment 2015-01-06 01:52:03 +00:00
Joey Hess
8759b9e7af Merge branch 'master' of ssh://git-annex.branchable.com 2015-01-05 18:58:56 -04:00
Joey Hess
ad6c58fe92 comment 2015-01-05 18:56:52 -04:00
https://www.google.com/accounts/o8/id?id=AItOawne3YCXovu_ERUYNpH46AVo0FlgyQwt3HI
832d18e539 Added a comment 2015-01-05 21:19:37 +00:00