git-svn.perl: close the edit for propedits even with no mods
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>
This commit is contained in:
parent
fc14b89a7e
commit
93ccbba6ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user