From: Eric Wong Date: Sat, 31 Mar 2007 21:00:18 +0000 (-0700) Subject: git-svn: fail on rebase if we are unable to find a ref to rebase against X-Git-Tag: v1.5.1~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6bad6610aece0bcaf4449ce170de22970793110;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index 278f45d6d..d307d430f 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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');