git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Document clone of clone loosing branches?
@ 2008-06-14 13:05 Vaclav Hanzl
  2008-06-14 14:31 ` Jeff King
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Vaclav Hanzl @ 2008-06-14 13:05 UTC (permalink / raw)
  To: git

I wander whether man git-clone is correct when it says "creates
remote-tracking branches for each branch in the cloned repository".

IMHO remote-tracking branches in the original repository _are_
branches and they are _not_ cloned (when using git-clone with no
options) - maybe this is worth noting very explicitly?

When git newby like me converts a CVS repository, containing just few
short old branches (stable release bug fixes) and then clones it
around, with naive belief that clone is a 1:1 copy or something close,
nasty surprise can happen:

 - converted repository has those branches, OK
 - clone of it also has them, but as a remote tracking branches
 - clone of clone has it as dangling objects only (can go away later)

Trying to play it safe, I used git-clone many times while starting
with git, and I got really nervous when I first discovered that my old
stable release bug fix branch is not visible in some repositories :-)

Is it just my failure to read those few hundred man pages carefully
enough (I did my best :-) ), or something worth fixing in man
git-clone and tutorials?

Regards,

Vaclav Hanzl

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

end of thread, other threads:[~2008-06-15 20:16 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 13:05 Document clone of clone loosing branches? Vaclav Hanzl
2008-06-14 14:31 ` Jeff King
2008-06-14 20:15   ` Document clone of clone ... bug?? Vaclav Hanzl
2008-06-14 20:34     ` Jakub Narebski
2008-06-14 20:48       ` Vaclav Hanzl
2008-06-14 14:31 ` Document clone of clone loosing branches? Jakub Narebski
2008-06-14 14:44 ` Lea Wiemann
2008-06-14 21:36   ` Vaclav Hanzl
2008-06-14 22:18     ` Junio C Hamano
2008-06-15  7:18       ` Vaclav Hanzl
2008-06-14 23:03     ` Jakub Narebski
2008-06-15  8:40 ` Jakub Narebski
2008-06-15 13:05   ` [PATCH] Documentation: Note about the meaning of "clone" Robin Rosenberg
2008-06-15 13:39     ` Jakub Narebski
2008-06-15 13:52     ` Wincent Colaiuta
2008-06-15 16:31       ` Vaclav Hanzl
2008-06-15 17:03     ` Vaclav Hanzl
2008-06-15 19:12     ` Miklos Vajna
2008-06-15 20:14     ` Junio C Hamano
2008-06-15 13:05   ` PATCH] cvsimport: Clarification on the use of -r Robin Rosenberg

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).