comment, retitle

This commit is contained in:
Joey Hess 2016-09-21 13:42:42 -04:00
parent ce03779e8c
commit f6fc40456d
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
2 changed files with 29 additions and 0 deletions

View file

@ -75,3 +75,5 @@ I am a little confused though since we do test for this scenario in datalad and
[[!meta author=yoh]]
[[!meta title="autoenable not done for implicit init"]]

View file

@ -0,0 +1,27 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2016-09-21T17:37:39Z"
content="""
`git annex init` does handle autoenable. When you bypass explicit init,
it does not do autoenabling.
This is not a change AFAICS. The changelog entry for autoenable
says that it's done by `git annex init`. Presumably your test suite
does run `git annex init`.
My original notes on why not to have automaitic init handle autoenable were:
> There was also the question of what to do when git-annex auto-inits
> in a clone of a repository. It wouldn't do for a command like
> `git annex find`'s output to include any messages that might be shown
> while auto-enabling special remotes as a result of an auto-init.
> Since I can't guarantee enabling special remotes will be quiet, I've not
> tried to auto-enable special remotes in this case.
>
> I think I'd have to
> exec a git-annex init process with stdout sent to stderr to implement
> this in a safe way, and due to calls to ensureInitialized in Remote.Git,
> which can auto-init a local remote, that gets particularly tricky. Best,
> I feel, to wait and see if anyone needs that.
"""]]