summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-01-02 18:09:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-02 18:43:54 (GMT)
commit7dfa16b9dc89c14c8e351cb70d775a21e87d5c23 (patch)
tree621fade754f4156e945fcfa41af02135484bc0e4 /git-svn.perl
parenteab827072d1e197eb6ccb6f75e7fe86143735f1e (diff)
downloadgit-7dfa16b9dc89c14c8e351cb70d775a21e87d5c23.zip
git-7dfa16b9dc89c14c8e351cb70d775a21e87d5c23.tar.gz
git-7dfa16b9dc89c14c8e351cb70d775a21e87d5c23.tar.bz2
git-svn: allow dcommit --no-rebase to commit multiple, dependent changes
Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-svn.perl b/git-svn.perl
index c51f1e7..9b1113a 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -418,7 +418,7 @@ sub cmd_dcommit {
warn "Attempting to commit more than one change while ",
"--no-rebase is enabled.\n",
"If these changes depend on each other, re-running ",
- "without --no-rebase will be required."
+ "without --no-rebase may be required."
}
while (1) {
my $d = shift @$linear_refs or last;
@@ -453,6 +453,7 @@ sub cmd_dcommit {
$parents->{$d};
}
$_fetch_all ? $gs->fetch_all : $gs->fetch;
+ $last_rev = $cmt_rev;
next if $_no_rebase;
# we always want to rebase against the current HEAD,
@@ -512,7 +513,6 @@ sub cmd_dcommit {
$parents = \%p;
$linear_refs = \@l;
}
- $last_rev = $cmt_rev;
}
}
unlink $gs->{index};