mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 13:36:17 +00:00

A remote's URLs are now modified according to the url.*.insteadOf and url.*.pushInsteadOf configurations. This allows a user to replace URL prefixes by setting the corresponding keys. E.g. "url.foo.insteadOf = bar" would replace the prefix "bar" with the new prefix "foo".
27 lines
716 B
Plaintext
27 lines
716 B
Plaintext
[core]
|
|
repositoryformatversion = 0
|
|
filemode = true
|
|
bare = false
|
|
logallrefupdates = true
|
|
ignorecase = true
|
|
precomposeunicode = false
|
|
[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
|
|
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
|
|
[url "shorter-prefix"]
|
|
insteadOf = http://example.co
|
|
[url "http://github.com"]
|
|
insteadOf = http://example.com
|
|
[url "git@github.com:"]
|
|
pushInsteadOf = http://github.com/
|