Git commit info not showing when the repository is a submodule #14253
Comments
williamdes
added a commit
to williamdes/phpmyadmintest
that referenced
this issue
May 3, 2018
… submodule Added tests for Config::checkGitRevision and Config::isGitRevision Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes
added a commit
to williamdes/phpmyadmintest
that referenced
this issue
May 3, 2018
… submodule Added tests for Config::checkGitRevision and Config::isGitRevision Closes: phpmyadmin#14253 Signed-off-by: William Desportes <williamdes@wdes.fr>
mauriciofauth
added a commit
that referenced
this issue
May 4, 2018
#14253 Git commit info not showing when the repository is a submodule
williamdes
added a commit
to williamdes/phpmyadmintest
that referenced
this issue
Dec 21, 2018
phpmyadmin#14253 Cherry-Picked-From: 9687dfb Signed-off-by: William Desportes <williamdes@wdes.fr>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce
mkdir testdir
cd testdir
git init
git submodule add https://github.com/phpmyadmin/phpmyadmin
composer install
Expected behaviour
Show git commit info:

Actual behaviour
No git commit info:

Why
Git uses a file to store the location of
.git
when the repository is a submodule of the root repositoryExecute command (in phpmyadmin folder):
cat .git
the result is :
gitdir: ../.git/modules/phpmyadmin
Documentations:
The text was updated successfully, but these errors were encountered: