{"thread":{"id":"16386","subject":"removing svn remotes","startedAt":"2008-11-19T01:47:24Z","lastAt":"2008-11-19T21:26:13Z","messageCount":3,"participants":["Matt Graham","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96115","messageId":"1c5969370811181747i240ed22bk73ca62e09b3d0172@mail.gmail.com","threadId":"16386","inReplyTo":null,"subject":"removing svn remotes","fromName":"Matt Graham","fromEmail":"mdg149@gmail.com","sentAt":"2008-11-19T01:47:24Z","receivedAt":"2008-11-19T01:47:24Z","isPatch":false,"sender":{"key":"mdg149@gmail.com","avatar":"https://gravatar.com/avatar/a1f130a60a6550f75e8d7d3849e58e46494f36bfaf764a38cfd695ac85de8576?d=mp&s=160"},"body":"Hi,\nI have a svn repo cloned into a git repo.  There are several remote\nrefs that are there that I don't care about and don't want to fetch.\n\ngit svn fetch --fetch-all gets a bunch of stuff from branches I don't want\ngit svn fetch requires I checkout the branches I care about before fetching\n\ngit svn fetch doesn't accept a branch name\ngit remote rm isn't able to see the svn remotes\n\nIs there a way to either:\n1) get rid of the svn remotes that I don't want?\n2) fetch only the remotes that I do want?\n\nThanks!\n"},{"id":"96128","messageId":"20081119083219.GB3538@atjola.homenet","threadId":"16386","inReplyTo":"1c5969370811181747i240ed22bk73ca62e09b3d0172@mail.gmail.com","subject":"Re: removing svn remotes","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2008-11-19T08:32:19Z","receivedAt":"2008-11-19T08:32:19Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2008.11.18 20:47:24 -0500, Matt Graham wrote:\n> Hi,\n> I have a svn repo cloned into a git repo.  There are several remote\n> refs that are there that I don't care about and don't want to fetch.\n> \n> git svn fetch --fetch-all gets a bunch of stuff from branches I don't want\n> git svn fetch requires I checkout the branches I care about before fetching\n> \n> git svn fetch doesn't accept a branch name\n> git remote rm isn't able to see the svn remotes\n> \n> Is there a way to either:\n> 1) get rid of the svn remotes that I don't want?\n> 2) fetch only the remotes that I do want?\n\nUhm, are you talking about remote tracking branches (what \"git branch\n-r\" shows), or svn-remotes (not sure if git-svn can list them, they're\nin .git/config)?\n\nThe behaviour you describe doesn't match my experience with git-svn, so\nmaybe you could elaborate a bit on the exact problem?\n\nThanks,\nBjörn\n"},{"id":"96189","messageId":"1c5969370811191326j46b8ae1r6e916c239cc6be82@mail.gmail.com","threadId":"16386","inReplyTo":"20081119083219.GB3538@atjola.homenet","subject":"Re: removing svn remotes","fromName":"Matt Graham","fromEmail":"mdg149@gmail.com","sentAt":"2008-11-19T21:26:13Z","receivedAt":"2008-11-19T21:26:13Z","isPatch":false,"sender":{"key":"mdg149@gmail.com","avatar":"https://gravatar.com/avatar/a1f130a60a6550f75e8d7d3849e58e46494f36bfaf764a38cfd695ac85de8576?d=mp&s=160"},"body":"On Wed, Nov 19, 2008 at 03:32, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:\n> On 2008.11.18 20:47:24 -0500, Matt Graham wrote:\n>> Hi,\n>> I have a svn repo cloned into a git repo.  There are several remote\n>> refs that are there that I don't care about and don't want to fetch.\n>>\n>> git svn fetch --fetch-all gets a bunch of stuff from branches I don't want\n>> git svn fetch requires I checkout the branches I care about before fetching\n>>\n>> git svn fetch doesn't accept a branch name\n>> git remote rm isn't able to see the svn remotes\n>>\n>> Is there a way to either:\n>> 1) get rid of the svn remotes that I don't want?\n>> 2) fetch only the remotes that I do want?\n>\n> Uhm, are you talking about remote tracking branches (what \"git branch\n> -r\" shows), or svn-remotes (not sure if git-svn can list them, they're\n> in .git/config)?\n>\n> The behaviour you describe doesn't match my experience with git-svn, so\n> maybe you could elaborate a bit on the exact problem?\n\nSorry the question was not clear.\n\ngit branch -r -d\ndid exactly what I need.  I guess I just didn't know how to ask for\nit.  Another happy discovery.\n\nUsing git branch -r -d, I was able to delete my svn-remotes.\nNow when I run git svn fetch --fetch-all, it appears to fetch only\nfrom the remaining branches that I didn't delete.  I hope that\nclarifies it.\n\nthank you!\n"}]}