diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-04-13 14:07:50 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-04-13 14:07:50 -0400 |
commit | 1064adfa388d6879666fbde620ac7b114366f354 (patch) | |
tree | 3f9a98e26126c65d9b607b33a48dd395872c8515 /doc | |
parent | 3f04c7c81a612427d5df7ae0982e72a392428cd1 (diff) |
webapp: When $HOME is a git repository, and has been initialized for use by git-annex, opening the webapp went ahead and ran the assistant there, annexing all files. Since this is almost certianly not desirable, especially when the user is just opening the webapp from a dekstop menu which happens to run it in $HOME, the webapp will now not treat such a $HOME git repository as a git-annex repository.
Diffstat (limited to 'doc')
2 files changed, 26 insertions, 0 deletions
diff --git a/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__.mdwn b/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__.mdwn index e2d67c68c..e14a9b67c 100644 --- a/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__.mdwn +++ b/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__.mdwn @@ -21,3 +21,5 @@ The assistant shouldn't do anything unless I tell it to. Currently, I cannot pla ### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) I use git annex for managing the image and video resources on my website and it works fine for that. + +> HOME git repo guard added, [[done]] --[[Joey]] diff --git a/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__/comment_6_ed1b53ceef3e7a499b92e6f3f0f6d672._comment b/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__/comment_6_ed1b53ceef3e7a499b92e6f3f0f6d672._comment new file mode 100644 index 000000000..5fdcf8e38 --- /dev/null +++ b/doc/bugs/Assistant_will_annex_your_files_on_startup_if_you_create_a_repository_in___126____47__/comment_6_ed1b53ceef3e7a499b92e6f3f0f6d672._comment @@ -0,0 +1,24 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 6""" + date="2016-04-13T17:43:34Z" + content=""" +So, I see that you *did* tell git-annex to treat your home git repo as a +git-annex repo. + +And, starting the the assistant/webapp from inside a git annex repository is +intended to start them running in that repository. This behavior makes a +lot of sense in general. It's consistent with running any other git command +inside a git repository causing that command to run on that repository. + +I guess that the issue here is, opening the git-annex webapp from a menu +causes the program to run with its working directory set to HOME. But in +this case, the HOME is only incidental, the intent is not to start the +webapp/assistant in that repository. + +Seems kind of hard for the assistant to determine intent though. + +So, the best that can be done, I suppose, is to make starting the webapp +in the HOME git repository behave as if that git repository was not +initialized for use by git-annex. +"""]] |