Retrieve git tag and commit-ID only if we are within a git repository