Skip to content

Commit

Permalink
git-svn.perl: close the edit for propedits even with no mods
Browse files Browse the repository at this point in the history
It's legitimate to update the mergeinfo property without
actually changing any files.  This can happen when changes are
backported to a branch, and then that branch is merged back
into mainline.  We still want to record the updated mergeinfo
for book-keeping.

Signed-off-by: Steven Walter <stevenrwalter@gmail.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Steven Walter authored and Eric Wong committed Dec 1, 2011
1 parent fc14b89 commit 93ccbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -5389,7 +5389,7 @@ sub apply_diff {
$self->{mergeinfo});
}
$self->rmdirs if $_rmdir;
if (@$mods == 0) {
if (@$mods == 0 && !defined($self->{mergeinfo})) {
$self->abort_edit;
} else {
$self->close_edit;
Expand Down

0 comments on commit 93ccbba

Please sign in to comment.