mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
git-svn: fail on rebase if we are unable to find a ref to rebase against
If we're on an invalid HEAD, we should detect this and avoid attempting to continue. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
a97e4075a1
commit
d6bad6610a
|
@ -435,6 +435,9 @@ sub cmd_rebase {
|
|||
}
|
||||
|
||||
my $gs = Git::SVN->find_by_url($url);
|
||||
unless ($gs) {
|
||||
die "Unable to determine remote information from URL: $url\n";
|
||||
}
|
||||
if (command(qw/diff-index HEAD --/)) {
|
||||
print STDERR "Cannot rebase with uncommited changes:\n";
|
||||
command_noisy('status');
|
||||
|
|
Loading…
Reference in a new issue