Commit graph

12911 commits

Author SHA1 Message Date
https://www.google.com/accounts/o8/id?id=AItOawnaH44G3QbxBAYyDwy0PbvL0ls60XoaR3Y
1ddb25cadb Added a comment: git annex get failed 2013-08-02 14:29:30 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
7a566a332f 2013-08-02 13:41:44 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
60ecabd8ba Added a comment 2013-08-02 07:21:50 +00:00
Richard Hartmann
24cd572a7c Sometimes, I dislike MarkDown 2013-08-02 09:02:45 +02:00
Richard Hartmann
4bd5b920c7 Fix indentation 2013-08-02 08:59:30 +02:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
e98d1d6ac1 Added a comment 2013-08-02 06:57:13 +00:00
http://joeyh.name/
c88bbc47ce Added a comment 2013-08-01 23:51:48 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg
0bb455dcae Added a comment: checkpresent again 2013-08-01 23:18:38 +00:00
Joey Hess
e6123b0187 reorder 2013-08-01 17:57:53 -04:00
Joey Hess
bb74db6ef0 blog for the day 2013-08-01 17:33:04 -04:00
Joey Hess
d16114d024 Slow and ugly work around for bug #718517 in git, which broke git-cat-file --batch for filenames containing spaces.
This runs git-cat-file in non-batch mode for all files with spaces.
If a directory tree has a lot of them, and is in direct mode, even "git
annex add" when there are few new files will need a *lot* of forks!

The only reason buffering the whole file content to get the sha is not a
memory leak is that git-annex only ever uses this on symlinks.

This needs to be reverted as soon as a fix is available in git!
2013-08-01 17:30:47 -04:00
Joey Hess
4e6f498cb8 update 2013-08-01 15:25:47 -04:00
Joey Hess
82b08688e2 Merge branch 'master' of ssh://git-annex.branchable.com 2013-08-01 15:16:22 -04:00
Joey Hess
ebd778c519 Escape ':' in file/directory names to avoid it being treated as a pathspec by some git commands
A git pathspec is a filename, except when it starts with ':', it's taken
to refer to a branch, etc. Rather than special case ':', any filename
starting with anything unusual is prefixed with "./"

This could have been a real mess to deal with, but luckily SafeCommand
is already extensively used and so we know at the type level the difference
between parameters that are files, and parameters that are command options.

Testing did show that Git.Queue was not using SafeCommand on
filenames fed to xargs. (Filenames starting with '-' worked before only
because -- was used to separate filenames from options when calling eg git
add.)

The test suite now passes with filenames starting with ':'. However, I did
not keep that change to it, because such filenames are probably not legal
on windows, and I have enough ugly windows ifdefs in there as it is.

This commit was sponsored by Otavio Salvador. Thanks!
2013-08-01 15:15:49 -04:00
http://joeyh.name/
ebef73985e Added a comment 2013-08-01 17:10:56 +00:00
https://www.google.com/accounts/o8/id?id=AItOawln4uCaqZRd5_nRQ-iLcJyGctIdw8ebUiM
4f7bfbb2ec Added a comment: Thanks 2013-08-01 17:03:23 +00:00
http://joeyh.name/
53b77590d7 Added a comment 2013-08-01 16:58:50 +00:00
https://www.google.com/accounts/o8/id?id=AItOawln4uCaqZRd5_nRQ-iLcJyGctIdw8ebUiM
5a0e741a44 Added a comment: Just put multiple source files 2013-08-01 16:29:07 +00:00
http://joeyh.name/
aa337f990c Added a comment 2013-08-01 16:06:42 +00:00
http://joeyh.name/
7e06571454 Added a comment 2013-08-01 16:05:10 +00:00
Joey Hess
904f776a2f Merge branch 'master' of ssh://git-annex.branchable.com 2013-08-01 12:03:48 -04:00
Joey Hess
03c76b5a30 improve importfeed --force; try to match existing files to avoid unncessary duplication 2013-08-01 11:57:05 -04:00
ckeen
4973b8c9db Added a comment: --force reload all URLs 2013-08-01 09:47:35 +00:00
https://launchpad.net/~mikapflueger
b640a5941b Added a comment: Thank you so much! 2013-08-01 01:13:53 +00:00
Richard Hartmann
0afe0273cb Typo 2013-08-01 01:16:27 +02:00
https://www.google.com/accounts/o8/id?id=AItOawln3ckqKx0x_xDZMYwa9Q1bn4I06oWjkog
febb7a8299 2013-07-31 22:39:55 +00:00
https://www.google.com/accounts/o8/id?id=AItOawln4uCaqZRd5_nRQ-iLcJyGctIdw8ebUiM
d40343f7a5 2013-07-31 22:19:22 +00:00
Joey Hess
12e269482f Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 16:48:41 -04:00
Joey Hess
88b1a3e54e close 2013-07-31 16:48:35 -04:00
Joey Hess
3a1e458e0a blog for the day 2013-07-31 16:47:30 -04:00
http://joeyh.name/
166128760d Added a comment 2013-07-31 20:42:10 +00:00
Joey Hess
899c3083e8 Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 16:37:53 -04:00
Joey Hess
d1ed337035 webapp: Improve handling of remotes whose setup has stalled.
This includes recovery from the ssh-agent problem that led to many reporting
http://git-annex.branchable.com/bugs/Internal_Server_Error:_Unknown_UUID/
(Including fixing up .ssh/config to set IdentitiesOnly.)

Remotes that have no known uuid are now displayed in the webapp as
"unfinished". There's a link to check their status, and if the remote
has been set annex-ignore, a retry button can be used to unset that and
try again to set up the remote.

As this bug has shown, the process of adding a ssh remote has some failure
modes that are not really ideal. It would certianly be better if, when
setting up a ssh remote it would detect if it's failed to get the UUID,
and handle that in the remote setup process, rather than waiting until
later and handling it this way.

However, that's hard to do, particularly for local pairing, since the
PairListener runs as a background thread. The best it could do is pop up an
alert if there's a problem. This solution is not much different.

Also, this solution handles cases where the user has gotten their repo into
a mess manually and let's the assistant help with cleaning it up.

This commit was sponsored by Chia Shee Liang. Thanks!
2013-07-31 16:36:29 -04:00
http://joeyh.name/
890bf1a750 Added a comment 2013-07-31 20:03:13 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmNu4V5fvpLlBhaCUfXXOB0MI5NXwh8SkU
9545d3420c Added a comment: Horns? 2013-07-31 19:53:51 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmNu4V5fvpLlBhaCUfXXOB0MI5NXwh8SkU
209a0ca0fa removed 2013-07-31 19:53:15 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmNu4V5fvpLlBhaCUfXXOB0MI5NXwh8SkU
3cce0d51e6 Added a comment: Horns? 2013-07-31 19:52:42 +00:00
Joey Hess
ab62ae357a hide NoUUID remotes from repolist
A ssh remote will breifly have NoUUID when it's just being set up and
git-annex-shell has not yet been queried for the UUID. So it doesn't make
sense to display any kind of error message in this case. The UI doesn't
work when there's NoUUID, and it can even crash the ajax long polling code.
So hiding NoUUID repositories is the right thing to do.

I've tested and the automatic refresh of the repolist causes the remote
to show up as soon as a UUID is recorded, when doing local pairing, and
when adding a ssh remote.
2013-07-31 14:31:05 -04:00
http://joeyh.name/
fea51d053c Added a comment 2013-07-31 17:42:22 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg
17bc95cb2f Added a comment 2013-07-31 17:34:50 +00:00
Joey Hess
af61bf2688 Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 13:31:14 -04:00
Joey Hess
cbfdf3ab21 set IdentitiesOnly
When setting up a dedicated ssh key to access the annex on a host,
set IdentitiesOnly to prevent the ssh-agent from forcing use of a different
ssh key.

That behavior could result in unncessary password prompts. I remember
getting a message or two from people who got deluged with password
prompts and I couldn't at the time see why.

Also, it would prevent git-annex-shell from being run on the remote host,
when git-annex was installed there by unpacking the standalone tarball,
since the authorized_keys line for the dedicated ssh key, which sets
up calling git-annex-shell when it's not in path, wouldn't be used.

This fixes
http://git-annex.branchable.com/bugs/Internal_Server_Error:_Unknown_UUID
but I've not closed that bug yet since I should still:

1. Investigate why the ssh remote got set up despite being so broken.
2. Make the webapp not handle the NoUUID state in such an ugly way.
3. Possibly add code to fix up systems that encountered the problem.
   Although since it requires changes to .ssh/config this may be one for
   the release notes.

Thanks to TJ for pointing me in the right direction to understand what
was happening here.
2013-07-31 13:30:49 -04:00
http://joeyh.name/
5824b13546 Added a comment: workaround 2013-07-31 17:19:01 +00:00
http://joeyh.name/
2ae68bc9e2 Added a comment: finally! 2013-07-31 16:47:39 +00:00
Joey Hess
78abed22ae Merge branch 'master' of ssh://git-annex.branchable.com 2013-07-31 12:32:32 -04:00
Joey Hess
5af1190ef1 make edits that a commenter apparently didn't realize they could make. this is a wiki.. 2013-07-31 12:31:30 -04:00
http://joeyh.name/
f9c8ee9bc8 Added a comment 2013-07-31 16:25:55 +00:00
http://joeyh.name/
5323d49494 Added a comment 2013-07-31 16:25:35 +00:00
Joey Hess
0f445cf093 typo 2013-07-31 12:22:50 -04:00
http://joeyh.name/
767b16224c Added a comment: use the force 2013-07-31 16:20:40 +00:00