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

Re: Error with git svn show-ignore: forbidden access

From
EWEric Wong <normalperson@yhbt.net>
Date
Sep 5, 2009, 05:57 UTC
Message-ID
<20090905055708.GA22272@dcvr.yhbt.net>
In-Reply-To
<551f769b0909010246u524599bcoc5b227f4a6279259@mail.gmail.com>
Yann Simon <yann.simon.fr@gmail.com> wrote:
Show 10 quoted lines
> Hi,
> 
> with git version 1.6.4:
> 
> $ git svn show-ignore > .gitignore
> RA layer request failed: Server sent unexpected return value (403
> Forbidden) in response to PROPFIND request for
> '/repos/XXX/YYY/ZZZ/trunk/aaa' at /usr/lib/git-core/git-svn line 2243
> 
> Is git svn show-ignore making request to the svn server?
Hi Yann,

Yes, git svn has to read the svn:ignore property remotely since it doesn't do anything with it when it fetches. Do you have read permissions to /repos/XXX/YYY/ZZZ/trunk/aaa on that repo?

Show 5 quoted lines
> I tried also with the --no-minimize-url option but get as answer:
> $ git svn --no-minimize-url show-ignore
> Unknown option: no-minimize-url
> 
> Thanks for the help

For everything besides initialization/clone, git svn reads the url in your $GIT_CONFIG. --minimize-url is only used for the initial setup.

You can edit it to move the URL down/up a level if you edit your corresponding fetch/branches/tags lines:

before:
	[svn-remote "svn"]
		url = http://example.com/
		fetch = project/trunk:refs/remotes/trunk
		branches = project/branches/*:refs/remotes/*
		tags = project/tags/*:refs/remotes/tags/*
after:
	[svn-remote "svn"]
		url = http://example.com/project
		fetch = trunk:refs/remotes/trunk
		branches = branches/*:refs/remotes/*
		tags = tags/*:refs/remotes/tags/*
-- 
Eric Wong
Previous: Yann SimonNext: Yann Simon
Message 2 of 3 in “Error with git svn show-ignore: forbidden access”
  1. Yann SimonSep 1, 2009
  2. Eric WongSep 5, 2009
  3. Yann SimonSep 14, 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.