Hopefully the final draft release notes update before 1.6.0.3
[gitweb.git] / git-svn.perl
index 4e9d75506605f67cac1791f7853b4cdf405ad663..33e1b503c4d58f5f0a0c109a37968419710fbd11 100755 (executable)
@@ -2571,7 +2571,7 @@ sub set_tree {
        my ($self, $tree) = (shift, shift);
        my $log_entry = ::get_commit_entry($tree);
        unless ($self->{last_rev}) {
-               fatal("Must have an existing revision to commit");
+               ::fatal("Must have an existing revision to commit");
        }
        my %ed_opts = ( r => $self->{last_rev},
                        log => $log_entry->{log},
@@ -3983,6 +3983,7 @@ sub gs_do_switch {
        }
 
        $ra ||= $self;
+       $url_b = escape_url($url_b);
        my $reporter = $ra->do_switch($rev_b, '', 1, $url_b, $editor, $pool);
        my @lock = $SVN::Core::VERSION ge '1.2.0' ? (undef) : ();
        $reporter->set_path('', $rev_a, 0, @lock, $pool);