{"thread":{"id":"16682","subject":"Specifying default checkout branch in url","startedAt":"2008-12-11T11:21:36Z","lastAt":"2008-12-11T11:45:22Z","messageCount":2,"participants":["Resul Cetin","Mikael Magnusson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"97593","messageId":"200812111221.36561.Resul-Cetin@gmx.net","threadId":"16682","inReplyTo":null,"subject":"Specifying default checkout branch in url","fromName":"Resul Cetin","fromEmail":"resul-cetin@gmx.net","sentAt":"2008-12-11T11:21:36Z","receivedAt":"2008-12-11T11:21:36Z","isPatch":false,"sender":{"key":"resul-cetin@gmx.net","avatar":null},"body":"Hi,\nI have the problem that I want to checkout a specific branch in a git-clone \nrun. Someone at the debian-mentors mailing list[1] has suggested to use a url \nlike git://git.myserver.org/project.git#branchname to checkout a branch with \nthe name branchname by default. But this doesn't seem to work. Is there \nalready another way to encode this in the url?\nMore information why I cannot change HEAD of the repository can be found in a \nbug report against debcheckout[2].\n\nRegards,\n\tResul\n\n[1] http://article.gmane.org/gmane.linux.debian.devel.mentors/34421\n[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508433\n"},{"id":"97594","messageId":"237967ef0812110345h51b79f13mefc45501ecb5b1b3@mail.gmail.com","threadId":"16682","inReplyTo":"200812111221.36561.Resul-Cetin@gmx.net","subject":"Re: Specifying default checkout branch in url","fromName":"Mikael Magnusson","fromEmail":"mikachu@gmail.com","sentAt":"2008-12-11T11:45:22Z","receivedAt":"2008-12-11T11:45:22Z","isPatch":false,"sender":{"key":"mikachu@gmail.com","avatar":null},"body":"2008/12/11 Resul Cetin <Resul-Cetin@gmx.net>:\n> Hi,\n> I have the problem that I want to checkout a specific branch in a git-clone\n> run. Someone at the debian-mentors mailing list[1] has suggested to use a url\n> like git://git.myserver.org/project.git#branchname to checkout a branch with\n> the name branchname by default. But this doesn't seem to work. Is there\n> already another way to encode this in the url?\n> More information why I cannot change HEAD of the repository can be found in a\n> bug report against debcheckout[2].\n>\n> Regards,\n>        Resul\n>\n> [1] http://article.gmane.org/gmane.linux.debian.devel.mentors/34421\n> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508433\n\nUse a git init, remote add, fetch branchname:branchname sequence.\n\n-- \nMikael Magnusson\n"}]}