Commit graph

22514 commits

Author SHA1 Message Date
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
Joey Hess
f4202a6b0f devblog 2015-01-05 17:12:45 -04:00
Joey Hess
db280bbd8a comment 2015-01-05 17:11:08 -04:00
Joey Hess
ccffed1c8b Merge branch 'master' of ssh://git-annex.branchable.com 2015-01-05 17:09:27 -04:00
Joey Hess
3009d9d535 comment 2015-01-05 17:03:44 -04:00
Joey Hess
d9db407716 comment 2015-01-05 16:58:19 -04:00
Joey Hess
d27c1b4688 close 2015-01-05 16:51:05 -04:00
https://www.google.com/accounts/o8/id?id=AItOawne3YCXovu_ERUYNpH46AVo0FlgyQwt3HI
9dc9935aa5 Added a comment 2015-01-05 20:47:31 +00:00
Joey Hess
bc633954e4 remove obsolete note; s3-aws was merged already 2015-01-05 16:45:22 -04:00
Joey Hess
014bd67f4a comment 2015-01-05 16:41:06 -04:00
Joey Hess
d0a4c99daa comment 2015-01-05 16:37:08 -04:00
Joey Hess
268aa8fd9b comment 2015-01-05 16:32:15 -04:00