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

git-cvsserver will crash for multi-rooted history

From
Steffen Prohaska <prohaska@zib.de>
Date
Jan 24, 2008, 16:24 UTC
Message-ID
<5E211213-2D07-4C16-99E1-6E8E3309D062@zib.de>

git-cvsserver in master will crash if the history has multiple roots. The problem is that git-merge-base might fail to find a merge base and this situation is not handled by git-cvsserver.

Unfortunately, I'll not have time to address this immediately; but it is a bug in current master, so I think at least you should now. Here is the code ...

2540 # git-merge-base can potentially (but rarely) throw 2541 # several candidate merge bases. let's assume 2542 # that the first one is the best one. 2543 if ($parent eq $lastpicked) { 2544 next; 2545 } 2546 my $base = safe_pipe_capture('git-merge-base', 2547 $lastpicked, $parent);

... the line above will fail.

2548 chomp $base; 2549 if ($base) { 2550 my @merged; 2551 # print "want to log between $base $parent \n"; 2552 open(GITLOG, '-|', 'git-log', "$base.. $parent")

	Steffen
Message 1 of 1 in “git-cvsserver will crash for multi-rooted history”
  1. Steffen ProhaskaJan 24, 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.