You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your Makefile variable GIT_REFRESH_PREREQ relies on .git/index if path .git exists.
This doesn't apply to submodules because .git is a file here, instead of being a directory.
The error you get in such case: make[1]: *** No rule to make target '.git/index', needed by 'version.inc'. Stop.
Many thanks for this bug report. I have adapted tests of .git as it could be either a file or a directory. The git rev-parse --git-dir command is also now used to determine git directory location rather assuming it is .git.
Describe the bug
Your
Makefile
variableGIT_REFRESH_PREREQ
relies on.git/index
if path.git
exists.This doesn't apply to submodules because
.git
is a file here, instead of being a directory.The error you get in such case:
make[1]: *** No rule to make target '.git/index', needed by 'version.inc'. Stop.
To Reproduce
Steps to reproduce the behavior (untested):
Kind of ...
Expected behavior
It should build even when you are a submodule of another git repository.
Additional context
Workaround: remove "
.git/index
".The text was updated successfully, but these errors were encountered: