git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-svn error: RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h':

From
TSTimothy Schaeffer <tschaeffer@dramail.com>
Date
Jul 24, 2009, 14:45 UTC
Message-ID
<138905EB75AB0D44B6A0ECD251A92EA7011BA99E@sdra00198.intranet.dra-inc.net>
Git-svn has been giving me the following error for some time when calling "git svn dcommit":

RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': PROPFIND of '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 302 Found (https://oursvnrepo.net) at /usr/local/libexec/git-core/git-svn line 508

This only occurred when git detected a rename or copy.

Following the lead into git-svn.perl, and noticing that some of the '/'s in the path were hex-encoded and some were not, I changed the regex used to find chars to hex-encode in the relative part of the path to exclude '/'. It works, so far. I have included a patch.

Tim S.
diff --git a/git-svn.perl b/git-svn.perl
index 43c86e8..864b752 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3953,7 +3953,7 @@ sub repo_path {
 sub url_path {
 	my ($self, $path) = @_;
 	if ($self->{url} =~ m#^https?://#) {
-		$path =~ s/([^~a-zA-Z0-9_.-])/uc sprintf("%%%02x",ord($1))/eg;
+		$path =~ s/([^~a-zA-Z0-9_.-\/])/uc sprintf("%%%02x",ord($1))/eg;
 	}
 	$self->{url} . '/' . $self->repo_path($path);
 }
Next: Eric Wong
Message 1 of 3 in “git-svn error: RA layer request failed: PROPFIND request failed on '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h':”
  1. Timothy SchaefferJul 24, 2009
  2. Eric WongJul 25, 2009
  3. Timothy SchaefferJul 27, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.