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

Re: What's cooking in git.git (Jan 2017, #04; Mon, 23)

From
Jeff King <peff@peff.net>
Date
Jan 25, 2017, 18:39 UTC
Message-ID
<20170125183924.6yclcjl4ggcu42yp@sigill.intra.peff.net>
In-Reply-To
<xmqq4m0nc8dz.fsf@gitster.mtv.corp.google.com>
On Wed, Jan 25, 2017 at 10:16:40AM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> > But whatever the cause, I think the workaround I posted is
> > easy enough to do.
> 
> Or spelling it explicitly as "/bin/mv" (forgetting systems that does
> not have it in /bin but as /usr/bin/mv) would also defeat alias if
> that were the cause.

Yes, but I think it's less tricky and unportable to write "mv -f" than "/bin/mv". So even if it _is_ a funny alias thing, I think my patch is the right fix.

Show 5 quoted lines
> One downside of working it around like your patch does, or spelling
> it out as "/bin/mv", is that we'd need to worry about all the uses
> of "mv" in our scripts.  If this were _only_ happening in the Travis
> environment, I'd prefer to see why it happens only there and fix that
> instead.

I would be curious to know whether it is a funny thing in the Travis environment, or if some version of macOS "mv" really is that braindead (and it is just the case that Travis has that version and Lars's computer doesn't). I just didn't want to waste anybody's time digging into it if it won't affect our patch.

I guess the way to dig would be to add a test that looks at the output of "type mv" or something, push it to a Travis-hooked branch, and then wait for the output

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 15 in “What's cooking in git.git (Jan 2017, #04; Mon, 23)”
  1. Junio C HamanoJan 24, 2017
  2. Lars SchneiderJan 24, 2017
  3. Jeff KingJan 24, 2017
  4. Lars SchneiderJan 24, 2017
  5. Johannes SchindelinJan 25, 2017
  6. Jeff KingJan 25, 2017
  7. Junio C HamanoJan 25, 2017
  8. Jeff KingJan 25, 2017
  9. Junio C HamanoJan 25, 2017
  10. Lars SchneiderJan 26, 2017
  11. Lars SchneiderJan 26, 2017
  12. Jeff KingJan 26, 2017
  13. Junio C HamanoJan 26, 2017
  14. Stefan BellerJan 25, 2017
  15. Junio C HamanoJan 25, 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.