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

Output from "rev-parse --resolve-git-dir" changed: two lines (prints original argument)

From
DHDaniel Hahler <genml+git-2014@thequod.de>
Date
Feb 17, 2014, 08:13 UTC
Message-ID
<5301C4B4.5070503@thequod.de>
I have noticed that the output from "git rev-parse --resolve-git-dir" changed.
While it used to only print the resolved git dir, it now prints the argument passed to it itself:
    % git rev-parse --resolve-git-dir .git
    /path/to/root/.git/modules/vim/bundle/reporoot
    .git
This is with Git version 1.8.5.3, but also happens with master.
You can use "--flags" to avoid this ("git rev-parse --flags --resolve-git-dir .git"), but it is unclear from the documentation if that's the intended beahviour.
It seems like the "--resolve-git-dir" subcommand needs to consume the argument passed to it.

Regards, Daniel.

-- 
http://daniel.hahler.de/
Next: John Keeping
Message 1 of 5 in “Output from "rev-parse --resolve-git-dir" changed: two lines (prints original argument)”
  1. Daniel HahlerFeb 17, 2014
  2. rev-parse: fix --resolve-git-dir argument handlingJohn Keeping, Feb 17, 2014
  3. Junio C HamanoFeb 18, 2014
  4. Junio C HamanoFeb 19, 2014
  5. John KeepingFeb 19, 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.