]> git.proxmox.com Git - libgit2.git/blobdiff - tests/resources/testrepo2/.gitted/config
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / resources / testrepo2 / .gitted / config
index 4af067f04016f88731c257b0b31b0017ad580063..6966b8a5dd1983146438ecc71c6aef3fd364a498 100644 (file)
@@ -8,19 +8,42 @@
 [remote "origin"]
        url = https://github.com/libgit2/false.git
        fetch = +refs/heads/*:refs/remotes/origin/*
-[remote "insteadof-test"]
-       url = http://example.com/libgit2/libgit2
-       pushurl = http://github.com/libgit2/libgit2
+[remote "insteadof-url-fetch"]
+       url = http://example.com/url/fetch/libgit2
+       fetch = +refs/heads/*:refs/remotes/test/*
+[remote "insteadof-url-push"]
+       url = http://example.com/url/push/libgit2
+       fetch = +refs/heads/*:refs/remotes/test/*
+[remote "insteadof-url-both"]
+       url = http://example.com/url/both/libgit2
+       fetch = +refs/heads/*:refs/remotes/test/*
+[remote "insteadof-pushurl-fetch"]
+       url = http://example.com/url/fetch/libgit2
+       pushurl = http://example.com/url/fetch/libgit2-push
+       fetch = +refs/heads/*:refs/remotes/test/*
+[remote "insteadof-pushurl-push"]
+       url = http://example.com/url/push/libgit2
+       pushurl = http://example.com/url/push/libgit2-push
+       fetch = +refs/heads/*:refs/remotes/test/*
+[remote "insteadof-pushurl-both"]
+       url = http://example.com/url/both/libgit2
+       pushurl = http://example.com/url/both/libgit2-push
        fetch = +refs/heads/*:refs/remotes/test/*
 [branch "master"]
        remote = origin
        merge = refs/heads/master
        rebase = true
 [url "longer-non-prefix-match"]
-       insteadOf = ttp://example.com/li
+       # not applicable because it's not a prefix match
+       insteadOf = ttp://example.com/url/fetch/li
 [url "shorter-prefix"]
-       insteadOf = http://example.co
-[url "http://github.com"]
-       insteadOf = http://example.com
-[url "git@github.com:"]
-       pushInsteadOf = http://github.com/
+       # not applicable because the matched prefix is shorter
+       insteadOf = http://example.com/url/fe
+[url "http://github.com/url/fetch"]
+       insteadOf = http://example.com/url/fetch
+[url "http://github.com/url/both"]
+       insteadOf = http://example.com/url/both
+[url "git@github.com:url/push"]
+       pushInsteadOf = http://example.com/url/push
+[url "git@github.com:url/both"]
+       pushInsteadOf = http://example.com/url/both