Fixes #5194: Initialize git repository if not present
Merge pull request #429 from VinceMacBuche/bug_5194/git_init_package

Fixes #5194: Initialize git repository if not present