github - Fix parentless commits after git svn clone -
i have converted subversion repository git 1 with:
git svn clone --no-metadata --stdlayout --prefix svn/
it worked well, have holes in repository, think means git svn not able find parents:
a----b---c---d (2.0) e --- f --- g (2.1)
here, first commit of 2.1 branch has no parent, should have 2.0 branch parent.
i tried rebasing, failed conflicts, there way of fixing these links ?
i think here not working because e gets commits prior it. content seems correct, history not.
yes, 2.1 branch has no parent because git svn
not find parent.
this caused svn branch not created using svn copy
, locally copying files, svn add
ing , committing them. in case, svn commit not include information copied from, git svn
cannot know use ancestor. bad practice (in svn), it's late now.
how fix this:
as far can see, git rebase
should indeed work in case. like:
git checkout 2.1 git rebase 2.0
i tested this: created simple svn repo created branch described above, cloned using git svn
, rebased branch, , worked.
if getting conflicts, there else getting in way. in case, can test case.
can create minimal testcase building dummy repo? or can anonymize repo using git fast-export
option --anonymize
? please post testcase somewhere.
Comments
Post a Comment