Git svn dcommit not working

I have to transfer the git degree repository to the new svn repository. I follow the following steps: http://sandrotosi.blogspot.com/2010/02/migrate-git-repo-to-svn-one.html

The problem is that when I run the command

git svn dcommit

Error message:

digger$ git svn dcommit
Committing to http://repository_url_path/trunk ...
A   .gitmodules
A   vendor/rails
6ce13429cbc1359d85e1dc99c84561840e89d455 doesn't exist in the repository at /opt/local/libexec/git-core/git-svn line 4277
Failed to read object 6ce13429cbc1359d85e1dc99c84561840e89d455 at /opt/local/libexec/git-core/git-svn line 558

How to fix it?

Thank!

+3
source share
1 answer

You are using submodules with git-svn.

You can rewrite the git story to delete it http://de-co-de.blogspot.com/2009/02/git-svn-and-submodules.html :

$ git tag bad mywork~5
$ git checkout bad
$ # make changes here and update the index
$ git commit --amend
$ git rebase --onto HEAD bad mywork

Or easier http://ignoredbydinosaurs.com/2011/06/quick-trip-panic-room :

$ git filter-branch --index-filter 'git rm --cached --ignore-unmatch vendor/rails'
+4
source

Source: https://habr.com/ru/post/1792506/


All Articles