Kallithea issues archive

Issue #297: Git 2.13 warns: fatal: --local can only be used inside a git repository

Reported by: Mads Kiilerich
State: new
Created on: 2017-09-03 23:46
Updated on: 2018-02-03 18:49


Running tests with Git 2.13.0 gives a warning:

fatal: BUG: setup_git_env called without repository

2.13.5 gives:

fatal: --local can only be used inside a git repository

I don't know if it has other implications.



Comment by Branko Majic, on 2018-01-30 21:34

I think this is a "spurious" error, and that it will not cause any issues in terms of tests. Seems to be an issue with pytest-benchmark plugin (see https://github.com/ionelmc/pytest-benchmark/issues/98) and how it determines project name. It will invoke command git config --local remote.origin.url, and does not really care about empty results (I think) - it is just one of possible commands that will return project name for the plugin.

Comment by Mads Kiilerich, on 2018-02-03 18:49

Thanks for digging up that information!