Re: GIT push to sftp (feature request)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Martin Langhoff
Date: Sunday, August 5, 2007 - 5:00 pm

On 8/6/07, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:

You are right -- I should have said: it's pretty hard, and we haven't
put the effort ;-)

there's been discussion recently of having info in the pack index that
would support http range requests.


Do I remember your name from gnuarch-users? -- that Arch/tla was never
particularly efficient, and fetches of large updates were slow and
painful. Surely it was efficient on paper though :-p


And I should have said - minimal locking rather than no locking

To update it safely, you need to open with a lock, read to ensure the
sha1 is what you think it is, write the new sha1, close. A rename is
still subject to race conditions.

IMVHO it would be good to have a way to push over sftp even it it is
slow, unsafe and full of big blinking warnings. git itself is sane
enough that the client side won't get corrupted or lose data if there
is a race condition on the server side.

Given a brief delay, the client can probably check - post push - that
the operation wasn't clobbered by a race condition. Of course, this
*is* sticks-and-bubblegum approach on the server side. But a solid
client repo makes almost any server-side disaster recoverable.

cheers,



martin
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
GIT push to sftp (feature request), pavlix, (Sun Aug 5, 2:05 am)
Re: GIT push to sftp (feature request), Johannes Schindelin, (Sun Aug 5, 6:38 am)
Re: GIT push to sftp (feature request), Martin Langhoff, (Sun Aug 5, 2:12 pm)
Re: GIT push to sftp (feature request), Matthieu Moy, (Sun Aug 5, 3:20 pm)
Re: GIT push to sftp (feature request), Martin Langhoff, (Sun Aug 5, 5:00 pm)
Re: GIT push to sftp (feature request), Matthieu Moy, (Mon Aug 6, 1:59 am)
Re: GIT push to sftp (feature request), Jan Hudec, (Tue Aug 7, 2:50 pm)