{"thread":{"id":"23949","subject":"Problems with git-svn and space in the URL","startedAt":"2010-05-31T03:05:47Z","lastAt":"2011-09-28T14:04:41Z","messageCount":3,"participants":["Marc Van Olmen","karl"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"142598","messageId":"13CB2F6C-49BB-44CB-84A7-2264CAF76766@sky4studios.be","threadId":"23949","inReplyTo":null,"subject":"Problems with git-svn and space in the URL","fromName":"Marc Van Olmen","fromEmail":"marc@sky4studios.be","sentAt":"2010-05-31T03:05:47Z","receivedAt":"2010-05-31T03:05:47Z","isPatch":false,"sender":{"key":"marc@sky4studios.be","avatar":null},"body":"Hi,\n\nFirst time user.\n\nWas trying to do a commit back to the svn repository: The svn repo has a space in the main project name:\n\nWhen I try to commit, got this:\n\nQuad-Raid-2:OnTheAir%20Video copy marcvano$ git svn dcommit\nCommitting to http://ns1.softronmedia.com/svn/OnTheAir Video/branches/ticket_0004_multiple_playback_buffers ...\nFilesystem has no item: '/svn/!svn/bc/2643/OnTheAir' path not found at /usr/local/git/libexec/git-core/git-svn line 572\n\nWhen I run:\n\nQuad-Raid-2:OnTheAir%20Video copy marcvano$ git svn info\nPath: .\nURL: http://ns1.softronmedia.com/svn/OnTheAir%20Video/branches/ticket_0004_multiple_playback_buffers\nRepository Root: http://ns1.softronmedia.com/svn\nRepository UUID: 6f96b356-5bf8-4915-87a6-d3080d869cd8\nRevision: 2643\nNode Kind: directory\nSchedule: normal\nLast Changed Author: XXXXXX\nLast Changed Rev: 2643\nLast Changed Date: 2010-05-02 18:01:52 -0400 (Sun, 02 May 2010)\n\n\nany solution for this problem?\n\nmarc"},{"id":"142613","messageId":"0A790195-2DB1-4E1F-BAE2-9D65C261AD26@sky4studios.be","threadId":"23949","inReplyTo":"13CB2F6C-49BB-44CB-84A7-2264CAF76766@sky4studios.be","subject":"Re: Problems with git-svn and space in the URL","fromName":"Marc Van Olmen","fromEmail":"marc@sky4studios.be","sentAt":"2010-05-31T15:33:34Z","receivedAt":"2010-05-31T15:33:34Z","isPatch":false,"sender":{"key":"marc@sky4studios.be","avatar":null},"body":"Hi,\n\nDon't think it was a space in URL but something else, haven't conclude what it was.\ngit 1.7.1\nsvn 1.6.6\nsvn server 1.6.5\n\nI was doing the following:\n-------------------------\n\n* git svn clone -s **myserver**/svn/OnTheAir%20Video\n* git checkout -b local/ticket_0004_multiple_playback_buffers ticket_0004_multiple_playback_buffers\n* git merge master\n* resolved all the conflicts (list was huge) several files were renamed and moved. So thanks to git i could resolve it all.\n* git commit \n* git svn dcommit ( this gave error below\n\n\nI resolved the issue by doing a new checkout merge\n\n* git svn clone -s **myserver**/svn/OnTheAir%20Video\n* git checkout -b local/ticket_0004_multiple_playback_buffers ticket_0004_multiple_playback_buffers\n\n(Several iterations of:)\n\n * I took one folder from previous merge above copied this over\n * git commit \n * git dcommit\n\nAfter 7 of these steps everything was working fine. \n\nSo it wasn't clear why above wasn't working. Maybe 'git merge master' caused some svn metadata issues?\n\nregards,\n\nmarc\n\n\n\nOn May 30, 2010, at 11:05 PM, Marc Van Olmen wrote:\n\n> Hi,\n> \n> First time user.\n> \n> Was trying to do a commit back to the svn repository: The svn repo has a space in the main project name:\n> \n> When I try to commit, got this:\n> \n> Quad-Raid-2:OnTheAir%20Video copy marcvano$ git svn dcommit\n> Committing to **myserver**/svn/OnTheAir Video/branches/ticket_0004_multiple_playback_buffers ...\n> Filesystem has no item: '/svn/!svn/bc/2643/OnTheAir' path not found at /usr/local/git/libexec/git-core/git-svn line 572\n> \n> When I run:\n> \n> Quad-Raid-2:OnTheAir%20Video copy marcvano$ git svn info\n> Path: .\n> URL: **myserver**/svn/OnTheAir%20Video/branches/ticket_0004_multiple_playback_buffers\n> Repository Root: **myserver**/svn\n> Repository UUID: 6f96b356-5bf8-4915-87a6-d3080d869cd8\n> Revision: 2643\n> Node Kind: directory\n> Schedule: normal\n> Last Changed Author: XXXXXX\n> Last Changed Rev: 2643\n> Last Changed Date: 2010-05-02 18:01:52 -0400 (Sun, 02 May 2010)\n> \n> \n> any solution for this problem?\n> \n> marc\n"},{"id":"176406","messageId":"1317218681291-6840304.post@n2.nabble.com","threadId":"23949","inReplyTo":"0A790195-2DB1-4E1F-BAE2-9D65C261AD26@sky4studios.be","subject":"Re: Problems with git-svn and space in the URL","fromName":"karl","fromEmail":"karl.okeeffe@kuluvalley.com","sentAt":"2011-09-28T14:04:41Z","receivedAt":"2011-09-28T14:04:41Z","isPatch":false,"sender":{"key":"karl.okeeffe@kuluvalley.com","avatar":null},"body":"I was able to work around this issue by patching git-svn.\n\nI updated the url_path function to:\n\n\nsub url_path {\n\tmy ($self, $path) = @_;\n\n\tmy $url = $self->{url} . '/' . $self->repo_path($path);\n\tif ($self->{url} =~ m#^https?://#) {\n\t\t$url =~ s!([^~a-zA-Z0-9_./-])!uc sprintf(\"%%%02x\",ord($1))!eg;\n                $url =~ s!^(https?)%3A//!$1://!;\n\t}\n    $url\n}\n\n\nThis ensures that the spaces in the url are encoded correctly.\n\nIt seems to work for me, but hasn't been tested thoroughly.\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Problems-with-git-svn-and-space-in-the-URL-tp5120361p6840304.html\nSent from the git mailing list archive at Nabble.com.\n"}]}