adjust: Add --fix adjustment, which is useful when the git directory is in a nonstandard place.

This commit is contained in:
Joey Hess 2016-05-16 17:05:42 -04:00
parent 76170b0457
commit eda5d9cc74
Failed to extract signature
7 changed files with 99 additions and 25 deletions

View file

@ -0,0 +1,14 @@
[[!comment format=mdwn
username="joey"
subject="""comment 6"""
date="2016-05-16T20:14:57Z"
content="""
I hope this will be fixed on the git side, but I don't know when it will
be. Probably comes down to someone developing a patch.
Occurs to me that git-annex could use adjusted branches to deal with this.
When initializing in a submodule, it could enter an adjusted branch with
`git annex adjust --fix`. This way, symlinks would be re-written to point
to the submodule's git repository. The .git dotfile would not need to be
converted to a symlink at all.
"""]]