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

Re: [PATCH] t4014-format-patch: Adjust git_version regex to better handle distro changes to DEF_VER

From
Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date
Oct 10, 2016, 04:08 UTC
Message-ID
<BC856B6F-B18F-41AF-BE60-973B8CFFC973@apple.com>
In-Reply-To
<E0254A0C-8BEC-4B88-A352-BA075B49BFA7@joshtriplett.org>
Show 10 quoted lines
> On Oct 9, 2016, at 20:04, Josh Triplett <josh@joshtriplett.org> wrote:
> 
> On October 9, 2016 7:53:23 PM PDT, Jeremy Huddleston Sequoia <jeremyhu@apple.com> wrote:
>> Regressed-in: 480871e09ed2e5275b4ba16b278681e5a8c122ae
>> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
>> CC: Josh Triplett <josh@joshtriplett.org>
>> CC: Junio C Hamano <gitster@pobox.com>
> 
> Looks reasonable to me. Didn't realize git versions could have spaces.
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Thanks, Josh.
If anyone feels strongly that they shouldn't, I'd be happy to change our DEF_VER patch to play nicer.
cf https://github.com/jeremyhu/git/commit/f99905d0752d923e5ec61e14c675a300c6d04284
Show 20 quoted lines
> 
>> t/t4014-format-patch.sh | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
>> index 8d90a6e..33f6940 100755
>> --- a/t/t4014-format-patch.sh
>> +++ b/t/t4014-format-patch.sh
>> @@ -754,7 +754,7 @@ test_expect_success 'format-patch
>> --ignore-if-in-upstream HEAD' '
>> 	git format-patch --ignore-if-in-upstream HEAD
>> '
>> 
>> -git_version="$(git --version | sed "s/.* //")"
>> +git_version="$(git --version | sed "s/git version //")"
>> 
>> signature() {
>> 	printf "%s\n%s\n\n" "-- " "${1:-$git_version}"
> 
> 
Previous: Josh TriplettNext: Jeff King
Message 3 of 9 in “t4014-format-patch: Adjust git_version regex to better handle distro changes to DEF_VER”
  1. t4014-format-patch: Adjust git_version regex to better handle distro changes to DEF_VERJeremy Huddleston Sequoia, Oct 10, 2016
  2. Josh TriplettOct 10, 2016
  3. Jeremy Huddleston SequoiaOct 10, 2016
  4. Jeff KingOct 10, 2016
  5. Jeremy Huddleston SequoiaOct 10, 2016
  6. Junio C HamanoOct 10, 2016
  7. Junio C HamanoOct 10, 2016
  8. Jeremy Huddleston SequoiaOct 10, 2016
  9. Eric WongOct 11, 2016

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.