detect git repo even when in submodule
Created by: marvelous
use git rev-parse to detect if we have a git repo, instead of looking for a .git folder (doesn't work if we are in a submodule)
[A venir] Mise en place de quotas sur nos instances GitLab. Plus d'information sur : https://doc-si.inria.fr/pages/viewpage.action?pageId=129728565
[Coming soon] Quotas installation on our GitLab instances. More information: https://doc-si.inria.fr/pages/viewpage.action?pageId=129728565
Created by: marvelous
use git rev-parse to detect if we have a git repo, instead of looking for a .git folder (doesn't work if we are in a submodule)