{"thread":{"id":"20807","subject":"Error with git svn show-ignore: forbidden access","startedAt":"2009-09-01T09:46:00Z","lastAt":"2009-09-14T07:30:44Z","messageCount":3,"participants":["Yann Simon","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"122232","messageId":"551f769b0909010246u524599bcoc5b227f4a6279259@mail.gmail.com","threadId":"20807","inReplyTo":null,"subject":"Error with git svn show-ignore: forbidden access","fromName":"Yann Simon","fromEmail":"yann.simon.fr@gmail.com","sentAt":"2009-09-01T09:46:00Z","receivedAt":"2009-09-01T09:46:00Z","isPatch":false,"sender":{"key":"yann.simon.fr@gmail.com","avatar":"https://gravatar.com/avatar/2d926895d27ac988c5c8e591887e5a6a4c7036390403c74fce92519119b887a0?d=mp&s=160"},"body":"Hi,\n\nwith git version 1.6.4:\n\n$ git svn show-ignore > .gitignore\nRA layer request failed: Server sent unexpected return value (403\nForbidden) in response to PROPFIND request for\n'/repos/XXX/YYY/ZZZ/trunk/aaa' at /usr/lib/git-core/git-svn line 2243\n\nIs git svn show-ignore making request to the svn server?\n\nI tried also with the --no-minimize-url option but get as answer:\n$ git svn --no-minimize-url show-ignore\nUnknown option: no-minimize-url\n\nThanks for the help\n\nYann\n"},{"id":"122478","messageId":"20090905055708.GA22272@dcvr.yhbt.net","threadId":"20807","inReplyTo":"551f769b0909010246u524599bcoc5b227f4a6279259@mail.gmail.com","subject":"Re: Error with git svn show-ignore: forbidden access","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-09-05T05:57:08Z","receivedAt":"2009-09-05T05:57:08Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Yann Simon <yann.simon.fr@gmail.com> wrote:\n> Hi,\n> \n> with git version 1.6.4:\n> \n> $ git svn show-ignore > .gitignore\n> RA layer request failed: Server sent unexpected return value (403\n> Forbidden) in response to PROPFIND request for\n> '/repos/XXX/YYY/ZZZ/trunk/aaa' at /usr/lib/git-core/git-svn line 2243\n> \n> Is git svn show-ignore making request to the svn server?\n\nHi Yann,\n\nYes, git svn has to read the svn:ignore property remotely since it\ndoesn't do anything with it when it fetches.  Do you have read\npermissions to /repos/XXX/YYY/ZZZ/trunk/aaa on that repo?\n\n> I tried also with the --no-minimize-url option but get as answer:\n> $ git svn --no-minimize-url show-ignore\n> Unknown option: no-minimize-url\n> \n> Thanks for the help\n\nFor everything besides initialization/clone, git svn reads the url in\nyour $GIT_CONFIG.  --minimize-url is only used for the initial setup.\n\nYou can edit it to move the URL down/up a level if you edit your\ncorresponding fetch/branches/tags lines:\n\nbefore:\n\n\t[svn-remote \"svn\"]\n\t\turl = http://example.com/\n\t\tfetch = project/trunk:refs/remotes/trunk\n\t\tbranches = project/branches/*:refs/remotes/*\n\t\ttags = project/tags/*:refs/remotes/tags/*\n\nafter:\n\n\t[svn-remote \"svn\"]\n\t\turl = http://example.com/project\n\t\tfetch = trunk:refs/remotes/trunk\n\t\tbranches = branches/*:refs/remotes/*\n\t\ttags = tags/*:refs/remotes/tags/*\n\n-- \nEric Wong\n"},{"id":"123135","messageId":"551f769b0909140030l6d4c46c1r30fb8b8a4313b741@mail.gmail.com","threadId":"20807","inReplyTo":"20090905055708.GA22272@dcvr.yhbt.net","subject":"Re: Error with git svn show-ignore: forbidden access","fromName":"Yann Simon","fromEmail":"yann.simon.fr@gmail.com","sentAt":"2009-09-14T07:30:44Z","receivedAt":"2009-09-14T07:30:44Z","isPatch":false,"sender":{"key":"yann.simon.fr@gmail.com","avatar":"https://gravatar.com/avatar/2d926895d27ac988c5c8e591887e5a6a4c7036390403c74fce92519119b887a0?d=mp&s=160"},"body":"Hi Eric,\n\n2009/9/5 Eric Wong <normalperson@yhbt.net>:\n> Yann Simon <yann.simon.fr@gmail.com> wrote:\n>> with git version 1.6.4:\n>>\n>> $ git svn show-ignore > .gitignore\n>> RA layer request failed: Server sent unexpected return value (403\n>> Forbidden) in response to PROPFIND request for\n>> '/repos/XXX/YYY/ZZZ/trunk/aaa' at /usr/lib/git-core/git-svn line 2243\n>>\n>> Is git svn show-ignore making request to the svn server?\n>\n> Yes, git svn has to read the svn:ignore property remotely since it\n> doesn't do anything with it when it fetches.  Do you have read\n> permissions to /repos/XXX/YYY/ZZZ/trunk/aaa on that repo?\n\nNo I do not have permissions to /repos/XXX/YYY/ZZZ/trunk/aaa.\nI did some more tests and found out that git svn fetch could care with\nthis and checkout every folders in trunk except aaa.\nGit svn fetch and git svn ignore do not have similar behavior?\n\n> For everything besides initialization/clone, git svn reads the url in\n> your $GIT_CONFIG.  --minimize-url is only used for the initial setup.\n>\n> You can edit it to move the URL down/up a level if you edit your\n> corresponding fetch/branches/tags lines:\n> [...]\n\nI tried that and it works. Tanks a lot!\n\nIt was easy in my case because there are only 2 folders in trunk, one\nI can access, and one I cannot.\nBut let's suppose there are x folders in 'trunk', and only one of them\ncannot be accessed.\nIn that case, the configuration could be very complex, is not it?\nBut that latter configuration is probably unlikely to be used. If\nsomeone wants to restrict access, he/she would use one folder for\nevery one, and one folder for restricted access.\n\n---\nYann\n"}]}