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

Git merge-file doesn't account correctly for not being in repo root

From
ABAleksander Boruch-Gruszecki <aleksander.boruch-gruszecki@bright-it.com>
Date
Nov 14, 2014, 17:06 UTC
Message-ID
<CAOiM-0UinUshK83MHbTcTj1VwrN1b-NnAv9NJYkphckZLiSXug@mail.gmail.com>

Git merge-file works correctly when reading files, but when trying to write to them, it doesn't prepend current working directory. I've attached a basic example - running "git merge-file file1 file file2" from inside sample dir will "fail" silently and write to file1 in repo root. Running git merge-file from the same dir referencing files inside deeper-sample will fail with message "error: Could not open deeper-sample/file1 for writing".

Message 1 of 1 in “Git merge-file doesn't account correctly for not being in repo root”
  1. Aleksander Boruch-GruszeckiNov 14, 2014

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.