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

Re: git-fetch in 1.5.4 fails versus 1.5.3.8

From
Jeff King <peff@peff.net>
Date
Feb 8, 2008, 00:32 UTC
Message-ID
<20080208003239.GA18856@coredump.intra.peff.net>
In-Reply-To
<20080207220243.GA7237@glandium.org>
On Thu, Feb 07, 2008 at 11:02:43PM +0100, Mike Hommey wrote:
> Sorry, I've had trouble opening my eyes and actually reading messages I
> reply to... anyways, I tried to reproduce with curl-gnutls and...
> couldn't... How did you manage that ? Is the server you were trying on
> public ? Do you have any http.ssl* variables set in your configuration ?

No, my test repo is not public. I have no special ssl configuration (though I do use GIT_SSL_NO_VERIFY=1 since I just had a test self-signed cert). The exact recipe on my Debian system is:

1. Build broken git on client
  client$ apt-get install libcurl4-gnutls-dev
  client$ cd ~/compile/git && make install
2. On server with ssl-enabled webserver (I am using lighttpd, but
   I don't think that it matters), make a small repo.
  server$ cd /var/www
  server$ mkdir foo && cd foo && git init
  server$ echo one >file && git add file && git commit -m one
  server$ git update-server-info
3. On client, clone repo, which should work ok
  client$ export GIT_SSL_NO_VERIFY=1 ;# if necessary
  client$ git clone https://yourserver.com/foo/.git
4. make a new commit in parent repo
  server$ echo two >file && git commit -a -m two
  server$ git update-server-info
5. fetch from client (this output is with GIT_SSL_NO_VERIFY=1; you get
   slightly different output if verification is on)
  client$ git fetch
  error: gnutls_handshake() failed: ASN1 parser: Element was not found.
  (curl_result = 35, http_code = 0, sha1 =
  07ac7bd2edd32a5818d719145910119ab72c9dd4)
  Getting pack list for https://peff.net/git/foo/.git
  error: gnutls_handshake() failed: ASN1 parser: Element was not found.
  Getting alternates list for https://peff.net/git/foo/.git
  error: Unable to find 07ac7bd2edd32a5818d719145910119ab72c9dd4 under
  https://peff.net/git/foo/.git
  Cannot obtain needed object 07ac7bd2edd32a5818d719145910119ab72c9dd4
  fatal: Fetch failed.
6. On client, rebuild with libcurl4-openssl-dev
  client$ apt-get install libcurl4-openssl-dev
  client$ cd ~/compile/git && make clean install
7. On client, do the fetch, which now works
  client$ cd ~/foo && git fetch
-Peff
Previous: Mike HommeyNext: Mike Hommey
Message 12 of 44 in “git-fetch in 1.5.4 fails versus 1.5.3.8”
  1. Anand KumriaFeb 4, 2008
  2. Jeff KingFeb 5, 2008
  3. Jari AaltoFeb 5, 2008
  4. Anand KumriaFeb 6, 2008
  5. Jeff KingFeb 7, 2008
  6. Mike HommeyFeb 7, 2008
  7. Anand KumriaFeb 7, 2008
  8. Jeff KingFeb 7, 2008
  9. Mike HommeyFeb 7, 2008
  10. Jeff KingFeb 7, 2008
  11. Mike HommeyFeb 7, 2008
  12. Jeff KingFeb 8, 2008
  13. Mike HommeyFeb 8, 2008
  14. Mike HommeyFeb 8, 2008
  15. Work around curl-gnutls not liking to be reinitializedMike Hommey, Feb 8, 2008
  16. Mike HommeyFeb 8, 2008
  17. Junio C HamanoFeb 8, 2008
  18. Mike HommeyFeb 8, 2008
  19. Mike HommeyFeb 8, 2008
  20. Work around curl-gnutls not liking to be reinitializedMike Hommey, Feb 8, 2008
  21. Johannes SchindelinFeb 8, 2008
  22. Work around curl-gnutls not liking to be reinitializedMike Hommey, Feb 8, 2008
  23. Mike HommeyFeb 8, 2008
  24. Work around curl-gnutls not liking to be reinitializedMike Hommey, Feb 9, 2008
  25. Daniel StenbergFeb 9, 2008
  26. Florian WeimerFeb 9, 2008
  27. Mike HommeyFeb 9, 2008
  28. Johannes SchindelinFeb 8, 2008
  29. Mike HommeyFeb 8, 2008
  30. Jeff KingFeb 9, 2008
  31. Frank LichtenheldFeb 7, 2008
  32. Linus TorvaldsFeb 7, 2008
  33. Frank LichtenheldFeb 7, 2008
  34. Linus TorvaldsFeb 7, 2008
  35. Anand KumriaFeb 7, 2008
  36. Jeff KingFeb 7, 2008
  37. Linus TorvaldsFeb 7, 2008
  38. Martin LanghoffFeb 7, 2008
  39. Dmitry PotapovFeb 7, 2008
  40. Jeff KingFeb 7, 2008
  41. Jeff KingFeb 7, 2008
  42. Dmitry PotapovFeb 7, 2008
  43. Anand KumriaFeb 8, 2008
  44. Dmitry PotapovFeb 8, 2008

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.