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

Re: [ANNOUNCE] Git v1.9-rc0

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 27, 2014, 18:58 UTC
Message-ID
<20140127185829.GE27577@google.com>
In-Reply-To
<20140127175953.GA18041@camk.edu.pl>
Hi,
Kacper Kornet wrote:
Show 6 quoted lines
> The change in release numbering also breaks down gitolite v2 setups. One
> of the gitolite commands, gl-compile-conf, expects the output of git --version 
> to match /git version (\d+)\.(\d+)\.(\d+)/. 
>
> I have no idea how big problem it is, as I don't know how many people
> hasn't migrate to gitolite v3 yet. 

http://qa.debian.org/popcon.php?package=gitolite says there are some. I guess soon we'll see if there are complaints.

http://gitolite.com/gitolite/migr.html says gitolite v2 is still maintained. Hopefully the patch to gitolite v2 to fix this would not be too invasive --- e.g., how about this patch (untested)?

Thanks, Jonathan

diff --git i/src/gl-compile-conf w/src/gl-compile-conf
index f497ae5..8508313 100755
--- i/src/gl-compile-conf
+++ w/src/gl-compile-conf
@@ -394,8 +394,9 @@ die "
     the server.  If it is not, please edit ~/.gitolite.rc on the server and
     set the \$GIT_PATH variable to the correct value\n
 " unless $git_version;
-my ($gv_maj, $gv_min, $gv_patchrel) = ($git_version =~ m/git version (\d+)\.(\d+)\.(\d+)/);
+my ($gv_maj, $gv_min, $gv_patchrel) = ($git_version =~ m/git version (\d+)\.(\d+)\.([^.-]*)/);
 die "$ABRT I can't understand $git_version\n" unless ($gv_maj >= 1);
+$gv_patchrel = 0 unless ($gv_patchrel =~ m/^\d+$/);
 $git_version = $gv_maj*10000 + $gv_min*100 + $gv_patchrel;  # now it's "normalised"
 
 die "\n\t\t***** AAARGH! *****\n" .
Previous: Kacper KornetNext: Kacper Kornet
Message 18 of 20 in “What's cooking in git.git (Jan 2014, #03; Thu, 16)”
  1. Junio C HamanoJan 16, 2014
  2. [ANNOUNCE] Git v1.9-rc0Junio C Hamano, Jan 21, 2014
  3. Javier Domingo CansinoJan 22, 2014
  4. Junio C HamanoJan 22, 2014
  5. Stefan NäweJan 22, 2014
  6. Junio C HamanoJan 22, 2014
  7. Vicent MartíJan 22, 2014
  8. Junio C HamanoJan 22, 2014
  9. Ken MoffatJan 22, 2014
  10. Junio C HamanoJan 22, 2014
  11. Ken MoffatJan 22, 2014
  12. Jeff KingJan 23, 2014
  13. Junio C HamanoJan 23, 2014
  14. Jeff KingJan 24, 2014
  15. Junio C HamanoJan 27, 2014
  16. Jeff KingJan 28, 2014
  17. Kacper KornetJan 27, 2014
  18. Jonathan NiederJan 27, 2014
  19. Kacper KornetJan 28, 2014
  20. Sitaram ChamartyJan 30, 2014

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.