$ git --version
git version 1.7.0.3
I clone an SVN repository, and make a commit:
$ git svn clone --stdlayout http://svn/example/project
$ echo test >> blah.txt
$ git commit -m "Something"
When I try and dcommit back to the SVN, I get the following error:
$ git svn dcommit
Cannot dcommit with a dirty index.  Commit your changes first, or stash them with `git stash'.
 at .../git/1.7.0.3/.../libexec/git-core/git-svn line 497
..despite the branch being seemingly clean:
$ git status
# On branch master
nothing to commit (working directory clean)
The only place I can see the non-existent "unstaged changes" is in gitk, where it says "Local uncommitted changes, not checked in to index"
Running git stash allows the dcommit to work for some reason:
$ git stash
No local changes to save
$ git svn dcommit
Committing to http://svn/example/project ...
        M       blah.txt
Committed r65913
        M       blah.txt
r65913 = a5547d761108d233211f115429e23ddca73bf4bc (refs/remotes/trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk
I have an alias to run git stash; git svn dcommit; git stash apply - but this is not the best workaround, as it causes merge errors when using actually using the stash