git archive and glob pathspecs
- From
Peter Wu <peter@lekensteyn.nl>
- Date
- Sep 2, 2014, 22:17 UTC
- Message-ID
- <7752133.8a4hJ4krff@al>
Hi,
The `git archive` seems to accept a pathspec judging from the error message (git version 2.1.0):
git archive HEAD -- :x
fatal: pathspec 'x' did not match any filesWhen I try to use deeper glob specs however, it throws an error (this also happens if I use `:(glob)**/Makefile`, tested in the git source tree):
$ git archive HEAD -- ':(glob)*/Makefile'
fatal: pathspec '*/Makefile' did not match any filesStrange enough, command `git log -- ':(glob)*/Makefile'` works. Any idea what is wrong?
Kind regards, Peter https://lekensteyn.nl