{"thread":{"id":"27649","subject":"pre-dcommit hook for 'git svn dcommit' ?","startedAt":"2011-06-18T15:55:25Z","lastAt":"2011-06-20T20:54:27Z","messageCount":2,"participants":["Frédéric Heitzmann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"170206","messageId":"loom.20110618T172659-970@post.gmane.org","threadId":"27649","inReplyTo":null,"subject":"pre-dcommit hook for 'git svn dcommit' ?","fromName":"Frédéric Heitzmann","fromEmail":"frederic.heitzmann@gmail.com","sentAt":"2011-06-18T15:55:25Z","receivedAt":"2011-06-18T15:55:25Z","isPatch":false,"sender":{"key":"frederic.heitzmann@gmail.com","avatar":null},"body":"Hello.\n\nThere is no way to set a hook before 'git svn dcommit', similarly with\npre-commit hook. I could use SVN hooks instead, but I have no rights to tune the\nSVN server (and it would also mean that my hooks would be applied to all SVN\ncommits).\n\nAny better idea than a pre-svn-dcommit hook ?\n\nThanks,\n\nFred\n"},{"id":"170321","messageId":"loom.20110620T224235-999@post.gmane.org","threadId":"27649","inReplyTo":"loom.20110618T172659-970@post.gmane.org","subject":"Re: pre-dcommit hook for 'git svn dcommit' ?","fromName":"Frédéric Heitzmann","fromEmail":"frederic.heitzmann@gmail.com","sentAt":"2011-06-20T20:54:27Z","receivedAt":"2011-06-20T20:54:27Z","isPatch":false,"sender":{"key":"frederic.heitzmann@gmail.com","avatar":null},"body":"Frédéric Heitzmann <frederic.heitzmann <at> gmail.com> writes:\n> \n> There is no way to set a hook before 'git svn dcommit', similarly with\n> pre-commit hook. I could use SVN hooks instead, but I have no rights to tune\n> the SVN server (and it would also mean that my hooks would be applied to all\n> SVN commits).\n> \n\nFor the sake of the discussion : I read some proposals for workaround my\nproblem.  It involves an intermediate bare repository.  I push to this bare\nrepo, and using pre-receive hook, I can perform any check I want.  Then, with\nupdate hook may trigger a git svn dcommit.  However, I now have another\nproblem to solve : how to trigger a 'git svn rebase' on my intermediate repo,\nwhen I 'git pull' from my working repo ?  Unless we considder adding a\n'pre-fetch' hook, I will have to write a script to do it all at once.\n\nIt looks pretty ugly to me.  The pre_svn_dcommit hook still looks like a more\nelegan solution.\n\nAny comment is welcome.\n\n-- Fred\n"}]}