Skip to contentSkip to conversation

git-svn --set-tree question

DISCUSSION Vitaly R. Tskhovrebov 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello, guys.

I have some unusual situation here.

We need to move git repo to svn with commit history. After some research I found a way with creating an empty svn, and then making git svn --set-tree [git_revision_number_here]

Commit history imports well, but i loose commiters' names and comments. How to move them too?

Thanks a lot, Vitaly.

#1 lore raw
Quoted 10 lines · Vitaly R. Tskhovrebov

Hello, guys.

I have some unusual situation here.

We need to move git repo to svn with commit history. After some research I found a way with creating an empty svn, and then making git svn --set-tree [git_revision_number_here]

Commit history imports well, but i loose commiters' names and comments. How to move them too?

Hi Vitaly,

You'll have to get the SVN admin to enable changing revprops on the repo itself. There's a hook you need to enable server-side and you'll probably have to write a script for changing the revprops of each revision to map to the git one.

Signature · 1 line
Eric Wong