git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GIT push to sftp (feature request)

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 6, 2007, 00:14 UTC
Message-ID
<f95p47$607$1@sea.gmane.org>
In-Reply-To
<vpqir7t8vy0.fsf@bauges.imag.fr>
Matthieu Moy wrote:
Show 8 quoted lines
> "Martin Langhoff" <martin.langhoff@gmail.com> writes:
> 
>> Git tries to be smart in at least 2 ways that don't work with dump
>> protocols: it works locklessly (yet it performs atomic updates) and it
>> sends only the objects needed over the wire (saving a lot of
>> bandwidth).
>>
>> Using dumb protocols it's impossible to do either.
But git _can_ push over http protocol (with WebDAV), and http is a dumb
protocol, and over rsync (although it is deprecated).
 
Show 7 quoted lines
> That's not exactly true. You can't be as efficient with dumb protocols
> than you are with a dedicated protocol (something with some
> intelligence on both sides), but at least the second point you mention
> can be achieved with a dumb protocol, and bzr is a proof of existance.
> To read over HTTP, it uses ranges request, and to push over
> ftp/sftp/webdav, it appends new data to existing files (its ancestor,
> GNU Arch, also had a way to be network-efficient on dumb protocols).

If I understand correctly to read (fetch) over http and other dumb protocols (like ftp), git uses two indices .git/info/refs and .git/objects/info/packs which must be present on the server serving http protocol (see git-update-server-info) to calculate which packs to get, and I think it always downloads whole packs, but I'm not sure...

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Matthieu MoyNext: Jan Hudec
Message 7 of 8 in “GIT push to sftp (feature request)”
  1. pavlixAug 5, 2007
  2. Johannes SchindelinAug 5, 2007
  3. Martin LanghoffAug 5, 2007
  4. Matthieu MoyAug 5, 2007
  5. Martin LanghoffAug 6, 2007
  6. Matthieu MoyAug 6, 2007
  7. Jakub NarebskiAug 6, 2007
  8. Jan HudecAug 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.