]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-svn.perl
git svn: fix dcommit to work with touched files
[thirdparty/git.git] / git-svn.perl
index c92238ece2d0e754248b7e71a32e4b0997c2c5af..8d2ef3d16f32d89a0d110a4539f9460436e0ce3b 100755 (executable)
@@ -494,6 +494,7 @@ sub cmd_set_tree {
 
 sub cmd_dcommit {
        my $head = shift;
+       command_noisy(qw/update-index --refresh/);
        git_cmd_try { command_oneline(qw/diff-index --quiet HEAD/) }
                'Cannot dcommit with a dirty index.  Commit your changes first, '
                . "or stash them with `git stash'.\n";