author | Andy Parkins <andyparkins@gmail.com> | |
Sun, 26 Nov 2006 12:10:52 +0000 (12:10 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 28 Nov 2006 01:08:41 +0000 (17:08 -0800) | ||
commit | 255cae88bcc8fcb0088459df13b55fa3d311b9e2 | |
tree | 6feb56e6ba71334ceb69e59a1008ef1bfe2b490e | tree | snapshot |
parent | f0df4ed5629c25e9978708115ad654b9f83f55df | commit | diff |
Use .git/config for storing "origin" shortcut repository
Rather than use a separate config .git/remotes/ for remote shortcuts, this
patch adds the analagous definitions to .git/config using git-repo-config
calls.
For example what was previously .git/remotes/origin
URL: proto://host/path
Pull: refs/heads/master:refs/heads/origin
Is now added to .git/config as
[remote "origin"]
url = proto://host/path
fetch = refs/heads/master:refs/heads/origin
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Rather than use a separate config .git/remotes/ for remote shortcuts, this
patch adds the analagous definitions to .git/config using git-repo-config
calls.
For example what was previously .git/remotes/origin
URL: proto://host/path
Pull: refs/heads/master:refs/heads/origin
Is now added to .git/config as
[remote "origin"]
url = proto://host/path
fetch = refs/heads/master:refs/heads/origin
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-clone.sh | diff | blob | history |