Why do I get this error message?
It happened to me too. And I don't remember to have done something unusual. SVN repo existed, Git version was the most recent. There were 2 commits in local git repo that I wanted to commit to SVN. But when I ran:
git svn dcommit
I got the error.
git svn fetch
and
git svn rebase
didn't help. I got the same error after running them.
I think the problem could be caused by the fact that I did a squash of 2 local git commits previously. If it was the reason I still don't understand why a squash is a problem in this case (If you know, please, comment it).
Anyway I solved the problem by cloning the svn repo again to another working directory.
git svn clone .../trunk
Added the problematic git repo as a remote one:
git remote add last /cygdrive/c/data/problem_repo
and did a cherry-pick on all the commits that weren't yet moved to SVN. After that I could successfuly run:
git svn dcommit