git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* BUG: git log on bare repository fails if the default branch is not called master
@ 2022-06-03 14:22 Ian Molton
  2022-06-03 14:40 ` AW: " stefan.naewe
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Molton @ 2022-06-03 14:22 UTC (permalink / raw)
  To: git; +Cc: Ian Molton

Hi,

Please CC me in replies, I'm not on the list.

I've noticed that git log assumes the default branch is master, even if
it doesn't exist...

My latest repo has it set to "mainline" and all was well until I pushed
it to a bare repo on my server.

Expectation:

If I run

git log

in the bare repo, it should log the default (or only!) branch.

Reality:

git log
# fatal: your current branch 'master' does not have any commits yet

-Ian

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

end of thread, other threads:[~2022-06-04  0:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 14:22 BUG: git log on bare repository fails if the default branch is not called master Ian Molton
2022-06-03 14:40 ` AW: " stefan.naewe
2022-06-03 18:06   ` Ian Molton
2022-06-03 18:56     ` Junio C Hamano
2022-06-04  0:50     ` Chris Torek

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).