aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorAxel Christ <axel.christ@inovex.de>2020-10-28 16:52:52 +0100
committerAxel Christ <axel.christ@inovex.de>2020-10-28 17:05:05 +0100
commit81d429bc0f13d05770fa5a824202e07f6f80c001 (patch)
tree93e5f22e678d9d417f89d8fe0d9b4d15a699a298 /plumbing
parent15aedd2ff43c25e0d54d6b488114725a266c79d0 (diff)
downloadgo-git-81d429bc0f13d05770fa5a824202e07f6f80c001.tar.gz
Fix relative submodule resolution
With the current behavior, the config will always hold the resolved, absolute URL, leavin the user of go-git no choice to determine whether the original URL is relative or not. This changes to employ relative URL resolution only when resolving a submodule to a repository to keep the correct configuration 'unresolved' and intact. Change relative resolution using `filepath.Dir` to `path.Join` while parsing both the 'root' and the relative URL with `net/url.URL`. Adapt test to verify the new behavior. Re-fixes #184 (see comments).
Diffstat (limited to 'plumbing')
0 files changed, 0 insertions, 0 deletions