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

Re: What's cooking in git.git (Feb 2014, #06; Wed, 19)

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 20, 2014, 19:22 UTC
Message-ID
<xmqqsird6137.fsf@gitster.dls.corp.google.com>
In-Reply-To
<BCF58F31-7130-4F4B-BE53-D917C4D50D96@quendi.de>
Max Horn <max@quendi.de> writes:
Show 15 quoted lines
> On 19.02.2014, at 22:41, Junio C Hamano <gitster@pobox.com> wrote:
>
>> * fc/transport-helper-fixes (2013-12-09) 6 commits
>> - remote-bzr: support the new 'force' option
>> - test-hg.sh: tests are now expected to pass
>> - transport-helper: check for 'forced update' message
>> - transport-helper: add 'force' to 'export' helpers
>> - transport-helper: don't update refs in dry-run
>> - transport-helper: mismerge fix
>> 
>> Reported to break t5541, and has been stalled for a while without
>> fixes.
> ...
> Since I somewhat care about transport-helpers, I had a closer look
> at this failure.

Thanks. Let's keep it a bit longer and see how your new investigation (and possibly help from others) develops to a solution.

Show 22 quoted lines
> Torsten already narrowed it down to f9e3c6bebb89de12
> (transport-helper: check for 'forced update' message).
>
> Looking at that commit, the problem is the new line
>
>    (*ref)->forced_update = forced;
>
> which is supposed to set forced_update to 1 in certain cases; but
> the code which sets "forced = 1" ever triggered (at least in my
> limited tests). Worse, it seems forced_update can be set to 1
> before we ever get there, and in these casss, we end up reseting
> forced_update from 1 back to 0. This triggers the test failure.
>
> So a simple fix for the test failure is to drop that
> patch. Another would be to change the assignment to
>
>    (*ref)->forced_update |= forced;
>
> But I haven't spent enough time to look at the patch to determine
> if one of these two possible changes is correct. All I can say is
> that dropping that single commit fixes the test failure for me and
> seems to cause now new failures.
Previous: Max HornNext: Max Horn
Message 3 of 11 in “What's cooking in git.git (Feb 2014, #06; Wed, 19)”
  1. Junio C HamanoFeb 19, 2014
  2. Max HornFeb 20, 2014
  3. Junio C HamanoFeb 20, 2014
  4. Max HornFeb 21, 2014
  5. Torsten BögershausenFeb 21, 2014
  6. Junio C HamanoFeb 21, 2014
  7. Max HornFeb 22, 2014
  8. Junio C HamanoFeb 24, 2014
  9. Junio C HamanoFeb 24, 2014
  10. Max HornFeb 24, 2014
  11. Ramkumar RamachandraFeb 21, 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.