git-commit-id-maven-plugin icon indicating copy to clipboard operation
git-commit-id-maven-plugin copied to clipboard

GIT_DIR and GIT_WORK_TREE not respected

Open fredcooke opened this issue 13 years ago • 3 comments

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 :-)

fredcooke avatar Jan 06 '13 02:01 fredcooke

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 ;-)

ktoso avatar Jan 06 '13 02:01 ktoso

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...

fredcooke avatar Jan 06 '13 12:01 fredcooke

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

fredcooke avatar Jan 06 '13 13:01 fredcooke