]> git.proxmox.com Git - libgit2.git/commit
git_submodule_resolve_url supports relative urls
authorJan Melcher <info@yogularm.de>
Wed, 2 Apr 2014 21:55:21 +0000 (23:55 +0200)
committerRussell Belfer <rb@github.com>
Thu, 3 Apr 2014 17:44:08 +0000 (10:44 -0700)
commitf2fb4bac68e7ab38cf6082655b2da153866a012d
tree1e242613aebe770de056068e4cf536f41787e195
parent12d4ed4de34e312cb491ce1b5562d84846aeb456
git_submodule_resolve_url supports relative urls

The base for the relative urls is determined as follows, with descending
priority:

- remote url of HEAD's remote tracking branch
- remote "origin"
- workdir

This follows git.git behaviour
src/submodule.c
tests/submodule/add.c [new file with mode: 0644]
tests/submodule/modify.c