git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: pre-dcommit hook for 'git svn dcommit' ?

From
FHFrédéric Heitzmann <frederic.heitzmann@gmail.com>
Date
Jun 20, 2011, 20:54 UTC
Message-ID
<loom.20110620T224235-999@post.gmane.org>
In-Reply-To
<loom.20110618T172659-970@post.gmane.org>
Frédéric Heitzmann <frederic.heitzmann <at> gmail.com> writes:
Show 6 quoted lines
> 
> There is no way to set a hook before 'git svn dcommit', similarly with
> pre-commit hook. I could use SVN hooks instead, but I have no rights to tune
> the SVN server (and it would also mean that my hooks would be applied to all
> SVN commits).
> 

For the sake of the discussion : I read some proposals for workaround my problem. It involves an intermediate bare repository. I push to this bare repo, and using pre-receive hook, I can perform any check I want. Then, with update hook may trigger a git svn dcommit. However, I now have another problem to solve : how to trigger a 'git svn rebase' on my intermediate repo, when I 'git pull' from my working repo ? Unless we considder adding a 'pre-fetch' hook, I will have to write a script to do it all at once.

It looks pretty ugly to me. The pre_svn_dcommit hook still looks like a more elegan solution.

Any comment is welcome.
-- Fred
Previous: Frédéric Heitzmann
Message 2 of 2 in “pre-dcommit hook for 'git svn dcommit' ?”
  1. Frédéric HeitzmannJun 18, 2011
  2. Frédéric HeitzmannJun 20, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.