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

From: Daniel Hahler <[email-masked]>
Date: Mon, 17 Feb 2014 09:13:40 +0100

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/