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

Re: What's cooking in git.git (Apr 2020, #01; Wed, 15)

From
DRDamien Robert <damien.olivier.robert@gmail.com>
Date
Apr 16, 2020, 23:05 UTC
Message-ID
<20200416230554.bhk2yfycjwjpxggy@doriath>
In-Reply-To
<20200416224708.zr4dlrz4hpaqsz2s@doriath>
From Damien Robert, Fri 17 Apr 2020 at 00:47:11 (+0200) :
> The triangular workflow patch is not quite correct in the sense that it
> does not handle (yet) all cases
Here were the two reasons for the RFC of this patch e3165570dfca690ea1a71518799153f6350777ae
- in is_workflow_triangular I compute the fetch and push remote. But the push
remote is computed again in branch_get_remote_ref. So we redo an already
done computation.
- Also in
struct remote *fetch_remote = remote_get(remote_for_branch(branch, NULL));
I don't check the value of *explicit.

This means that I get the fallback of 'origin' if no remote is specified. So if I set a pushRemote="foobar" but no remote, then remote.c will consider we are in a triangular workflow but git push will not.

Previous: Damien RobertNext: Junio C Hamano
Message 8 of 18 in “What's cooking in git.git (Apr 2020, #01; Wed, 15)”
  1. Junio C HamanoApr 15, 2020
  2. Elijah NewrenApr 16, 2020
  3. Junio C HamanoApr 16, 2020
  4. Damien RobertApr 16, 2020
  5. Jeff KingApr 16, 2020
  6. Junio C HamanoApr 16, 2020
  7. Damien RobertApr 16, 2020
  8. Damien RobertApr 16, 2020
  9. Junio C HamanoApr 16, 2020
  10. Damien RobertApr 17, 2020
  11. Junio C HamanoApr 17, 2020
  12. Damien RobertApr 17, 2020
  13. Junio C HamanoApr 17, 2020
  14. Damien RobertApr 18, 2020
  15. Danh DoanApr 17, 2020
  16. Junio C HamanoApr 17, 2020
  17. Danh DoanApr 17, 2020
  18. Junio C HamanoApr 17, 2020

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.