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

Re: What's cooking in git.git (Jan 2021, #02; Fri, 8)

From
Taylor Blau <me@ttaylorr.com>
Date
Jan 15, 2021, 02:24 UTC
Message-ID
<YAD80TFOn0EX24wb@nand.local>
In-Reply-To
<xmqqsg73ufxr.fsf@gitster.c.googlers.com>
On Thu, Jan 14, 2021 at 05:50:08PM -0800, Junio C Hamano wrote:
Show 13 quoted lines
> Emily Shaffer <emilyshaffer@google.com> writes:
> >  	# start registers the repo
> > -	git config --get --global maintenance.repo "$(pwd)" &&
> > +	pwd >expect &&
> > +	git config --get --global maintenance.repo >actual &&
> > +	test_cmp expect actual &&
>
> > Before this patch, the test said "Is there something configured in
> > maintenance.repo that looks like $PWD?" and after this patch, the test
> > says, "Does the config in maintenance.repo look like $PWD?" - so it is
> > not quite semantically identical but I think may be clearer.
>
> Sounds sensible.  Derrick (CC'ed), thoughts?

I'm not Stolee, but isn't this what 'git config --fixed-value' is for? ISTM that what is written here (writing the cwd into 'expect', and then comparing it to the value of maintenance.repo) is correct, but I think it may be unnecessarily verbose.

I.e., wouldn't the following do the trick?

- git config --get --global maintenance.repo "$(pwd)" && + git config --get --fixed-value --global maintenance.repo "$(pwd)" &&

Thanks, Taylor

Previous: Junio C HamanoNext: Taylor Blau
Message 23 of 34 in “What's cooking in git.git (Jan 2021, #02; Fri, 8)”
  1. Junio C HamanoJan 8, 2021
  2. Ævar Arnfjörð BjarmasonJan 9, 2021
  3. Junio C HamanoJan 9, 2021
  4. brian m. carlsonJan 9, 2021
  5. Junio C HamanoJan 9, 2021
  6. brian m. carlsonJan 11, 2021
  7. Junio C HamanoJan 11, 2021
  8. Ævar Arnfjörð BjarmasonJan 12, 2021
  9. Emily ShafferJan 14, 2021
  10. Emily ShafferJan 14, 2021
  11. Junio C HamanoJan 15, 2021
  12. brian m. carlsonJan 15, 2021
  13. Junio C HamanoJan 15, 2021
  14. Ævar Arnfjörð BjarmasonJan 16, 2021
  15. Jeff KingJan 17, 2021
  16. Ævar Arnfjörð BjarmasonJan 17, 2021
  17. Ævar Arnfjörð BjarmasonJan 10, 2021
  18. Junio C HamanoJan 11, 2021
  19. David AguilarJan 9, 2021
  20. Junio C HamanoJan 9, 2021
  21. Emily ShafferJan 14, 2021
  22. Junio C HamanoJan 15, 2021
  23. Taylor BlauJan 15, 2021
  24. Taylor BlauJan 15, 2021
  25. Derrick StoleeJan 15, 2021
  26. Derrick StoleeJan 15, 2021
  27. Junio C HamanoJan 15, 2021
  28. Junio C HamanoJan 15, 2021
  29. Derrick StoleeJan 15, 2021
  30. Junio C HamanoJan 15, 2021
  31. Emily ShafferJan 15, 2021
  32. Junio C HamanoJan 15, 2021
  33. Jeff KingJan 15, 2021
  34. Junio C HamanoJan 15, 2021

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.