Skip to content

Commit 9dfa77b

Browse files
committed
Fix dcommit when a renamed file has @ in its name
If a file has '@' in its name and the file is renamed - for example moved to another directory - dcommit-ting to an SVN repository yields this error: Assertion failed: (svn_uri_is_canonical(child_uri, NULL)), function uri_skip_ancestor, file subversion/libsvn_subr/dirent_uri.c, line 1520. error: git-svn died of signal 6
1 parent 37023ba commit 9dfa77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl/Git/SVN/Editor.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ sub url_path {
145145
my ($self, $path) = @_;
146146
if ($self->{url} =~ m#^https?://#) {
147147
# characters are taken from subversion/libsvn_subr/path.c
148-
$path =~ s#([^~a-zA-Z0-9_./!$&'()*+,-])#sprintf("%%%02X",ord($1))#eg;
148+
$path =~ s#([^~a-zA-Z0-9_./!$&'()*+,@-])#sprintf("%%%02X",ord($1))#eg;
149149
}
150150
$self->{url} . '/' . $self->repo_path($path);
151151
}

0 commit comments

Comments
 (0)