Hi all,
If you enforce requiring a Change-Id in Gerrit, users without a Change-Id will see the hint to install the commit-msg hook with "scp -p -P 29418 user@server:hooks/commit-msg .git/hooks". This is great for your root project, but if you're using submodules (and happen to be using Git >=1.8.0), the submodule's .git is actually a gitdir file pointing to the root project's modules folder. I think a possible solution is:
gitdir=$(git rev-parse --git-dir) scp -p -P 29418 gerrit.consumer.garmin.com:hooks/commit-msg $gitdir/hooks
But, it's a bit ugly. I'm not sure if we should attempt to make this more accurate, or keep the simple version and let the user figure out if they need to do something else? Any other thoughts?
--Doug