git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug] cloning a repository with a default MASTER branch tries to check out the master branch
@ 2017-05-22 21:42 Félix Saparelli
  2017-05-23  3:40 ` [Non-Bug] " Junio C Hamano
  2017-05-23  8:01 ` [Bug] " Samuel Lijin
  0 siblings, 2 replies; 17+ messages in thread
From: Félix Saparelli @ 2017-05-22 21:42 UTC (permalink / raw)
  To: git

Hi,

I created a git repository that, for joke reasons, has a single branch
called MASTER (in uppercase). Upon cloning this repo, git attempts to
checkout the master branch (in lowercase), which does not exist.
Checking out the MASTER branch manually afterwards works.

$ git clone git@github.com:passcod/UPPERCASE-NPM.git
Cloning into 'UPPERCASE-NPM'...
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 14 (delta 3), reused 14 (delta 3), pack-reused 0
Receiving objects: 100% (14/14), done.
Resolving deltas: 100% (3/3), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

$ cd UPPERCASE-NPM
$ ls -a
. .. .git
$ git branch
$ git checkout MASTER
Branch MASTER set up to track remote branch MASTER from origin.
Switched to a new branch 'MASTER'
$ ls -a
. .. .git NPM package.json README
$ git branch
* MASTER

Some platform information:

$ git version
git version 2.12.2

$ uname -a
Linux felix-probook 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09
CEST 2017 x86_64 GNU/Linux

Git was installed from the default Arch Linux package.

Thanks,
Félix


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-05-31  4:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-22 21:42 [Bug] cloning a repository with a default MASTER branch tries to check out the master branch Félix Saparelli
2017-05-23  3:40 ` [Non-Bug] " Junio C Hamano
2017-05-23 23:24   ` Philip Oakley
2017-05-24 14:19     ` Jeff King
2017-05-25  1:36       ` Junio C Hamano
2017-05-25  3:13         ` Junio C Hamano
2017-05-25 15:59           ` Jeff King
2017-05-25 19:11             ` Jeff King
2017-05-25 23:28               ` Junio C Hamano
2017-05-26 20:00               ` Philip Oakley
2017-05-26 21:17                 ` Philip Oakley
2017-05-27 23:55                 ` Junio C Hamano
2017-05-28 11:21                   ` Philip Oakley
2017-05-28 12:57                     ` Junio C Hamano
2017-05-31  4:43                     ` Jeff King
2017-05-23  8:01 ` [Bug] " Samuel Lijin
2017-05-23 12:12   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).