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>
Eric Wong committed
Mar 31, 2007 at 14:00 UTC
d6bad6610aece0bcaf4449ce170de22970793110
1 file changed
+3
git-svn.perl
+3
@@ -435,6 +435,9 @@ sub cmd_rebase {
435
}
436
437
my $gs = Git::SVN->find_by_url($url);
438
+ unless ($gs) {
439
+ die "Unable to determine remote information from URL: $url\n";
440
+ }
441
if (command(qw/diff-index HEAD --/)) {
442
print STDERR "Cannot rebase with uncommited changes:\n";
443
command_noisy('status');