author | Phil Hord <phil.hord@gmail.com> | |
Tue, 4 Oct 2011 20:08:20 +0000 (16:08 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Oct 2011 20:30:38 +0000 (13:30 -0700) | ||
commit | 7ab8777e8dd365e9a5dc06eb3042903e296ef1b0 | |
tree | a1ddd0d5d299b261909b8dcd965e419714de6dc5 | tree | snapshot |
parent | 03106768afa0be60346bb335f9fd11063622c91d | commit | diff |
Teach transport about the gitfile mechanism
The transport_get() function assumes that a regular file is a
bundle rather than a local git directory. Look inside the file
for the telltale "gitlink: " header to see if it is actually a
gitfile. If so, do not try to process it as a bundle, but
treat it as a local repository instead.
Signed-off-by: Phil Hord <hordp@cisco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The transport_get() function assumes that a regular file is a
bundle rather than a local git directory. Look inside the file
for the telltale "gitlink: " header to see if it is actually a
gitfile. If so, do not try to process it as a bundle, but
treat it as a local repository instead.
Signed-off-by: Phil Hord <hordp@cisco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c | diff | blob | history |