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

Re: [PATCH v2] git-p4: Fix git-p4.mapUser on Windows

From
Luke Diamand <luke@diamand.org>
Date
Jan 29, 2017, 17:10 UTC
Message-ID
<CAE5ih7-qug9n-Df2gA27iTjSQo67tAnPhTJWQhyvR_PP9h3rcg@mail.gmail.com>
In-Reply-To
<xmqqa8ac1k7o.fsf@gitster.mtv.corp.google.com>
On 27 January 2017 at 17:33, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> George Vanburgh <george@vanburgh.me> writes:
>
>> From: George Vanburgh <gvanburgh@bloomberg.net>
>>
>> When running git-p4 on Windows, with multiple git-p4.mapUser entries in
>> git config - no user mappings are applied to the generated repository.
>> ...
>> Using splitlines solves this issue, by splitting config on all
>> typical delimiters ('\n', '\r\n' etc.)
>
> Luke, Lars, this version seems to be in line with the conclusion of
> your earlier reviews, e.g.
>
> <CAE5ih7_+Vc9oqKdjo8h2vgZPup4pto9wd=sBb=W6hCs4tuW2Jg@mail.gmail.com>
>
> Even though it looks OK to my eyes, I'll wait for Acks or further
> refinement suggestions from either of you two before acting on this
> patch.
It looks good to me. The tests all pass, and the change looks correct.
Ack.
Luke
Show 24 quoted lines
>
> Thanks.
>
>> Signed-off-by: George Vanburgh <gvanburgh@bloomberg.net>
>> ---
>>  git-p4.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/git-p4.py b/git-p4.py
>> index f427bf6..b66f68b 100755
>> --- a/git-p4.py
>> +++ b/git-p4.py
>> @@ -656,7 +656,7 @@ def gitConfigInt(key):
>>  def gitConfigList(key):
>>      if not _gitConfig.has_key(key):
>>          s = read_pipe(["git", "config", "--get-all", key], ignore_error=True)
>> -        _gitConfig[key] = s.strip().split(os.linesep)
>> +        _gitConfig[key] = s.strip().splitlines()
>>          if _gitConfig[key] == ['']:
>>              _gitConfig[key] = []
>>      return _gitConfig[key]
>>
>> --
>> https://github.com/git/git/pull/319
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 9 in “git-p4: Fix git-p4.mapUser on Windows”
  1. git-p4: Fix git-p4.mapUser on WindowsGeorge Vanburgh, Jan 21, 2017
  2. Lars SchneiderJan 21, 2017
  3. George VanburghJan 21, 2017
  4. Luke DiamandJan 22, 2017
  5. George VanburghJan 22, 2017
  6. git-p4: Fix git-p4.mapUser on WindowsGeorge Vanburgh, Jan 25, 2017
  7. Junio C HamanoJan 27, 2017
  8. Luke DiamandJan 29, 2017
  9. Junio C HamanoJan 30, 2017

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.