Git uses a file to store the location of .git when the repository is a submodule of the root repository
Execute command (in phpmyadmin folder): cat .git
the result is : gitdir: ../.git/modules/phpmyadmin
… submodule
Added tests for Config::checkGitRevision and Config::isGitRevision
Closes: phpmyadmin#14253
Signed-off-by: William Desportes <williamdes@wdes.fr>
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: