bug with check-ref-format outside of repository
- From
- Marko Kungla <marko.kungla@gmail.com>
- Date
- Jul 8, 2017, 01:17 UTC
- Message-ID
- <CAKY_R-uk9hpR2hbkPsw2cqoMo6bQKoyp6cWTO20L3fOWfLW2-Q@mail.gmail.com>
Hi,
As contrived e.g: if I have in my "workspace" sub directories mostly git repositories, but some not and if I exec, "for d in */ ; do (cd $d && git check-ref-format --branch @{-1}); done" then I get 3 possible responses.
git version: 2.13.0
1. Valid branch name
2. fatal: '@{-1}' is not a valid branch name
3. fatal: BUG: setup_git_env called without repositorygit version 2.13.2.915.ga9c46e097
1. Valid branch name
2. fatal: '@{-1}' is not a valid branch name
3. BUG: environment.c:178: git environment hasn't been setupbest marko