summaryrefslogtreecommitdiff
path: root/tests/submodule/add.c
Commit message (Collapse)AuthorAgeFilesLines
* remote: rename _load() to _lookup()cmn/remote-lookupCarlos Martín Nieto2014-11-081-1/+1
| | | | This brings it in line with the rest of the lookup functions.
* remote: accept a repo and name for renamingcmn/remote-renameCarlos Martín Nieto2014-10-241-3/+1
| | | | | | | | | | Remote objects are not meant to be changed from under the user. We did this in rename, but only the name and left the refspecs, such that a save would save the wrong refspecs (and a fetch and anything else would use the wrong refspecs). Instead, let's simply take a name and not change any loaded remote from under the user.
* Introduce option to use relative paths for repository work directoryjamill/relative_gitlinkJameson Miller2014-09-021-0/+20
| | | | | | | Teach git_repository_init_ext to use relative paths for the gitlink to the work directory. This is used when creating a sub repository where the sub repository resides in the parent repository's .git directory.
* remote: return problem refspecs instead of using a callbackCarlos Martín Nieto2014-06-061-1/+4
| | | | | | There is no reason why we need to use a callback here. A string array fits better with the usage, as this is not an event and we don't need anything from the user.
* Minor code cleanupRussell Belfer2014-04-031-30/+32
|
* git_submodule_resolve_url supports relative urlsJan Melcher2014-04-031-0/+115
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