git-commit-id-maven-plugin
git-commit-id-maven-plugin copied to clipboard
GIT_DIR and GIT_WORK_TREE not respected
git dir to find the git dir (allow it to override the usual find mechanism and/or variable), and the work dir for git status/describe checking. Thanks in advance :-)
Looking up the var and using it if set during JGit initialization should be enough to fix this I guess. I'll give it 1 hour tomorrow ;-)
No big rush on this, my work-around is working fine :-) The plugins that are currently holding me up with bugs are two that I recently adopted myself...
For others reference:
My first work-around:
cp -ar $GIT_DIR $GIT_WORK_TREE/
My improved work-around:
ln -s $GIT_DIR $GIT_WORK_TREE/.git