I have a git repository with about 30 revisions that I want to import into an existing SVN repository. Unfortunately the SVN repository has a bunch of pre-commit hooks requiring certain information in commit messages, certain SVN keywords in certain file types, and so on. None of these are really relevant to to the stuff I'm checking in, or at any rate, they're not as important as keeping the existing revision history.
In a perfect world, I maybe could do something like:
- hijack the first git revision (and any other revisions that introduce new files) to make it include the necessary SVN keywords and set the corresponding svn:keywords property
- mass-edit all 30 git commit messages to prepend the required commit-message strings
In a somewhat less perfect world, I could get git-svn to somehow prepend skip-pre-commit-checks (? -- I've never used it before), and then I'd at least have all the revision history in there.
Thoughts?
Updated to add: skip-pre-commit-checks isn't actually a thing; I was misled by a specific hack at a particular project.