libgit2/tests-clar/resources/testrepo.git/config
nulltoken c9ffa84bde remote: Relax the parsing logic even more
In order to be loaded, a remote needs to be configured with at least a `url` or a `pushurl`.

ENOTFOUND will be returned when trying to git_remote_load() a remote with neither of these entries defined.
2013-08-27 19:31:19 +02:00

41 lines
959 B
Plaintext

[core]
repositoryformatversion = 0
filemode = true
bare = true
logallrefupdates = true
[remote "test"]
url = git://github.com/libgit2/libgit2
fetch = +refs/heads/*:refs/remotes/test/*
[remote "joshaber"]
url = git://github.com/libgit2/libgit2
[remote "empty-remote-url"]
url =
pushurl =
[remote "empty-remote-pushurl"]
pushurl =
[remote "no-remote-url"]
fetch =
[remote "test_with_pushurl"]
url = git://github.com/libgit2/fetchlibgit2
pushurl = git://github.com/libgit2/pushlibgit2
fetch = +refs/heads/*:refs/remotes/test_with_pushurl/*
[branch "master"]
remote = test
merge = refs/heads/master
[branch "track-local"]
remote = .
merge = refs/heads/master
[branch "cannot-fetch"]
remote = joshaber
merge = refs/heads/cannot-fetch
[branch "remoteless"]
remote =
merge = refs/heads/master
[branch "mergeless"]
remote = test
merge =
[branch "mergeandremoteless"]
remote =
merge =