diff options
author | Steven Walter <stevenrwalter@gmail.com> | 2011-11-30 21:37:27 -0500 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-12-01 14:25:30 -0800 |
commit | 93ccbba6ee5417ac97ce5e7fb8b7d9f1e080826e (patch) | |
tree | 2581ffbfab95a9324b2e26a2270315a996e9f7e2 /git-svn.perl | |
parent | Git 1.7.8-rc4 (diff) | |
download | tgif-93ccbba6ee5417ac97ce5e7fb8b7d9f1e080826e.tar.xz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index e30df22d89..eeb83d3759 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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; |