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

not robust inconsistent git 2.40.1 with HEAD -> master, origin/main, origin/HEAD, origin/master, main

From
CCarlos <kaploceh@gmail.com>
Date
May 30, 2023, 17:58 UTC
Message-ID
<7o2ggnyobdgjpki2ooljbmd5gqjxsbg56wuhkzyl3qfqvimrds@tnrmri2cxc5n>
Running git 2.40.1 with HEAD -> master, origin/main, origin/HEAD, origin/master, main with initial commit on main does not show all the objects from master
! [main] Initial commit
 * [master] Initial commit
  ! [origin/master] Initial commit
---
+*+ [main] Initial commit

the chunk of objects are on master and not main, and yet it shows nothing once checking out to master.

the git-clone operation is not consistent either. It's a disaster.
One would think that by now with the more developed work put on to git, it'd
be safe to assume the more sense there's on newer versions. But no. This
 is the opposite actually. 
Now. If by any chance the git-branch operation were to return:
  main
* master
after git-clone, then objects are indeed in place. That is. On master
but not if git-branch returns 
  main
* master
  origin/master
-- 
Our documentation manager was showing her 2 year old son around the office.
He was introduced to me, at which time he pointed out that we were both
holding bags of popcorn.  We were both holding bottles of juice.  But only
*he* had a lollipop.
	He asked his mother, "Why doesn't HE have a lollipop?"
	Her reply: "He can have a lollipop any time he wants to.  That's
what it means to be a programmer."
Message 1 of 1 in “not robust inconsistent git 2.40.1 with HEAD -> master, origin/main, origin/HEAD, origin/master, main”
  1. CarlosMay 30, 2023

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.