git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Change default branch name (server side) while cloning a repository

From
Gaurav Chhabra <varuag.chhabra@gmail.com>
Date
Mar 29, 2015, 07:33 UTC
Message-ID
<CAGDgvc3BWfCOMcQZunq5H0FpP05L3J7bPHpnpM4gJRSkChco2A@mail.gmail.com>
@Stefan: Thanks for letting me know the version you tried on.

I have the following: Gitolite version: gitolite3 v3.04-13-gcc9727c-dt on git 1.7.1 Git server version: git version 1.7.1 Git client version: git version 1.9.4.msysgit.2

My Git server version lags quite behind compared to yours. :) Clone of any repository is not empty because i create non-empty directories while creating any repository.

@Matthieu: You were right in saying that client can get confused if several branches point to same commit. :) Thank a ton! :) Going by what Jeff mentioned confidently, my server version (1.7.1) indeed has that flaw.

@Jeff: You've hit the nail on the head! :) Both Matthieu & you are right. I even confirmed the same by changing the content of mainline while initializing repository. SHAs indeed became different for both master and mainline. Now when i clone the repository on my local machine, it correctly points to mainline. And special thanks for pointing to the exact Git version where the flaw was fixed. :) I checked the release notes too. :)

https://git.kernel.org/cgit/git/git.git/tree/Documentation/RelNotes/1.8.4.3.txt
Thank you guys! You rock!!!
Message 1 of 1 in “Re: Change default branch name (server side) while cloning a repository”
  1. Gaurav ChhabraMar 29, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.