Bug or unexpected behaviour in git show <rev>:a\b
- From
- David Burström <davidburstrom@spotify.com>
- Date
- Jan 24, 2020, 12:45 UTC
- Message-ID
- <CAA-mk2_jB2X1J-NCXQ92spa-fmEct9G9f1iQo7t8=rvD5coFDA@mail.gmail.com>
Hi!
As part of some experiments on running git on Windows, I found something unexpected. If I use e.g. bash to run the following in a repository:
git show HEAD:a\\b
the command stalls for a short while and then exits with 0 and prints nothing on stdout. I've verified this on git 2.25.0 and 2.21.0. I would have expected either "fatal: Path 'a\b' does not exist in 'HEAD'" or something of that nature. Nothing in "man git revisions" hint that backslash is treated specially. Is this a bug or is it an undocumented feature?
Best regards, David Burström