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

git-svn: add/obey a hooks/prepare-commit-msg

From
WSW Snyder <wsnyder@wsnyder.org>
Date
Jul 15, 2008, 19:10 UTC
Message-ID
<20080715191025.43B9811BB3@wsnyder.org>
First, thanks for git-svn!

I'm trying to make a edit to the log message when pulling from SVN into GIT using git-svn.

It's going bidirectionally, so I don't want to git-filter-branch.

I tried creating a hooks/prepare-commit-msg script; it works ok when manually doing a "git-commit" but seems to be ignored by "git-svn fetch". I made a hacked-up copy of git-svn that edits the log message the way I want and it all seems to work.

Can support for obeying commit-msg hooks be added to git-svn? Or, is there another way to do this?

Thanks!
Message 1 of 1 in “git-svn: add/obey a hooks/prepare-commit-msg”
  1. W SnyderJul 15, 2008

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.