git-svn - #object# doesn't exist in the repository at /opt/local/libexec/git-core/git-svn line 4706

后端 未结 3 1446
抹茶落季
抹茶落季 2021-02-04 06:48

on

git svn dcommit

it starts commiting and then I get this

A   spec/controllers/authenticated_system_spec.rb
A   spec/controlle         


        
3条回答
  •  渐次进展
    2021-02-04 07:21

    Did you create submodules in your Git repo ?
    This blog post seems to mention that as an issue.

    As of Jan 2009 git-svn does NOT work with submodules.
    There is no good way to map submodules to svn and the perl script that implements git-svn just bombs when doing git svn dcommit.

    You need to go back and rewrite history.
    You should be able to use git commit --amend.

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

提交回复
热议问题