{"thread":{"id":"38937","subject":"Re: Change default branch name (server side) while cloning a repository","startedAt":"2015-03-29T07:33:23Z","lastAt":"2015-03-29T07:33:23Z","messageCount":1,"participants":["Gaurav Chhabra"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"258648","messageId":"CAGDgvc3BWfCOMcQZunq5H0FpP05L3J7bPHpnpM4gJRSkChco2A@mail.gmail.com","threadId":"38937","inReplyTo":null,"subject":"Re: Change default branch name (server side) while cloning a repository","fromName":"Gaurav Chhabra","fromEmail":"varuag.chhabra@gmail.com","sentAt":"2015-03-29T07:33:23Z","receivedAt":"2015-03-29T07:33:23Z","isPatch":false,"sender":{"key":"varuag.chhabra@gmail.com","avatar":"https://gravatar.com/avatar/b731428347fdc09c456902cac39c52957f1e296e8edd38f6162400e8402f480e?d=mp&s=160"},"body":"@Stefan: Thanks for letting me know the version you tried on.\n\nI have the following:\nGitolite version: gitolite3 v3.04-13-gcc9727c-dt on git 1.7.1\nGit server version: git version 1.7.1\nGit client version: git version 1.9.4.msysgit.2\n\nMy Git server version lags quite behind compared to yours. :) Clone of\nany repository is not empty because i create non-empty directories\nwhile creating any repository.\n\n@Matthieu: You were right in saying that client can get confused if\nseveral branches point to same commit. :)  Thank a ton! :) Going by\nwhat Jeff mentioned confidently, my server version (1.7.1) indeed has\nthat flaw.\n\n@Jeff: You've hit the nail on the head! :) Both Matthieu & you are\nright. I even confirmed the same by changing the content of mainline\nwhile initializing repository. SHAs indeed became different for both\nmaster and mainline. Now when i clone the repository on my local\nmachine, it correctly points to mainline. And special thanks for\npointing to the exact Git version where the flaw was fixed. :) I\nchecked the release notes too. :)\n\nhttps://git.kernel.org/cgit/git/git.git/tree/Documentation/RelNotes/1.8.4.3.txt\n\nThank you guys! You rock!!!\n"}]}