author | Linus Torvalds <torvalds@g5.osdl.org> | |
Thu, 14 Jul 2005 01:46:20 +0000 (18:46 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Thu, 14 Jul 2005 01:46:20 +0000 (18:46 -0700) | ||
commit | 2386d65822c912f0889ac600b1698b0659190133 | |
tree | 26e01b11b643ee2f423f4be3ee92b964e75df7e8 | tree | snapshot |
parent | 2408cff9f738459019709c8c12d0bd8a5605566f | commit | diff |
Add first cut at "git protocol" connect logic.
Useful for pulling stuff off a dedicated server. Instead of connecting
with ssh or just starting a local pipeline, we connect over TCP to the
other side and try to see if there's a git server listening.
Of course, since I haven't written the git server yet, that will never
happen. But the server really just needs to listen on a port, and
execute a "git-upload-pack" when somebody connects.
(It should read one packet-line, which should be of the format
"git-upload-pack directoryname\n"
and eventually we migth have other commands the server might accept).
Useful for pulling stuff off a dedicated server. Instead of connecting
with ssh or just starting a local pipeline, we connect over TCP to the
other side and try to see if there's a git server listening.
Of course, since I haven't written the git server yet, that will never
happen. But the server really just needs to listen on a port, and
execute a "git-upload-pack" when somebody connects.
(It should read one packet-line, which should be of the format
"git-upload-pack directoryname\n"
and eventually we migth have other commands the server might accept).
cache.h | diff | blob | history | |
connect.c | diff | blob | history |