aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_confuses_Git_with_nested_submodules/comment_1_fb01d4b5af500affc08a5c3b3b1849dd._comment
blob: 41068b5a9ba1730247b195ed4c7d23e7044da373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2016-03-01T20:25:13Z"
 content="""
Reproduced this.

This really does feel like a git bug. git is supposed to treat "gitlink"
files and .git symlinks the same. While modern versions of git set up
gitlink files for submodules, older versions of git used .git symlinks, and
git should still support that.

Looks like the problem can be worked around, by setting
`GIT_DIR`. In your example, `GIT_DIR=../.git/modules/sub_lvl1/ git
submodule add /src/somegitrepo sub_lvl2`
"""]]