svngitgit-svndcommit

Git svn commit with id


I am working to setup a local git that bases it's repository on a SVN store.

All looks ok but how do I link a work item id with a comment to svn store when I run "git svn dcommit"?


Solution

  • Took a while to remember I asked this question. The solution was pretty simple. I just has to format the git commit message so the post commit hook was able to read the commit and dispatch it wherever. We are using mantgis and buildmaster user Issue : : XXXXX format where XXXXX is a number. So your commit message simply looks like "my commit message Issue : : XXXXX". You can even add "Reviewed By : : K. Colleague" before "Issue" token. Remember to check your buildmaster what format he uses for the hooks. It varies...