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

Is git over http (git-http-push) ready for production ?

From
FFabien <fabien.ubuntu@gmail.com>
Date
Feb 19, 2010, 10:26 UTC
Message-ID
<hllp07$o78$1@ger.gmane.org>
Hi,

Following my last email about locks problem with reiserfs (see git-http-push (git v1.5) problems with DAVLockDB on reiserfs FS), I was wondering how reliable is git-http-push.

I was able to reproduce the same problem, also with client 1.6.6.2, when interrupting the command in the middle.

$ git push origin master
Fetching remote heads...
  refs/
  refs/tags/
  refs/heads/
updating 'refs/heads/master'
  from a0f6d85d90a52a28628f29765eb61de559c1fd31
  to   952622ca0f55e76d810a5dc7a1dd1c8c44f8a7d7
Removing remote locks...
=> interrupted by Ctrl+C
$ git push origin master
Fetching remote heads...
  refs/
  refs/tags/
  refs/heads/
updating 'refs/heads/master'
  from a0f6d85d90a52a28628f29765eb61de559c1fd31
  to   952622ca0f55e76d810a5dc7a1dd1c8c44f8a7d7
Unable to lock remote branch refs/heads/master
Updating remote server info
fatal: git-http-push failed

I had to delete the davlock file and restart apache to solve the issue. So, this operation doesn't seem really atomic ?

Another problem I see is the password in clear text in ~/.netrc to avoid
  to type passwords all the time.
Is there any plan to address this problem ? There used to be the same
case in subversion (yep, sorry for the comparison), and they finally
addressed that by supporting GNOME Keyring and KWallet.
For what I saw, http support is provided thru libcurl, so it may not be
that easy.

Finally, hooks don't work when using git over http (yep, I know, it's a "dumb" protocol)...

Sorry for blaming you and thanks a lot for your help :)

-- Fabien

Next: Tay Ray Chuan
Message 1 of 6 in “Is git over http (git-http-push) ready for production ?”
  1. FabienFeb 19, 2010
  2. Tay Ray ChuanFeb 19, 2010
  3. Matthieu MoyFeb 19, 2010
  4. Ilari LiusvaaraFeb 19, 2010
  5. FabienFeb 19, 2010
  6. Shawn PearceFeb 19, 2010

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.