On Fri, Jun 26, 2009 at 10:47:02AM +0200, Laurent PETIT wrote: > Hello, > > OK, I thought that the graph of cloned repositories was oriented, but it > seems I was wrong :) > > Still, I don't see the "fork of" link, so maybe the person that created its > clone did not do it via the fork functionality of github, but rather did it > from its [desk/lap]top, and pushed his repo on his personal space at github > ? > > More specifically, I'm talking about > http://github.com/kevinoneill/clojure-contrib/tree/master , where I don't > see any "fork of" link. > > Can you explain that to me ?
To understand that, you need to know how github "fork of" works. I have no idea either, but here is my guess: Github decides which repo forked of by section '[remote "origin"]' in file .git/config. Generally, if you "git clone git://git-repo", the origin is recorded into this section. However, not all repos have the section. For example: $ mkdir repo_a $ git init $ cd ../repo_b $ git push ../repo_a master In this case, repo_a/.git/config has no '[remote "origin"]' section. Without this section, github has no idea where this repo forked of, and consequently, the "fork of" link is not shown. > > Regards, > > -- > Laurent > > 2009/6/26 Mike Hinchey <hinche...@gmail.com> > > > On the Source tab, the "fork of" link tells you - that is, Rich's don't > > have that line, so it is the root. On the Network Members tab, it shows a > > tree of the forks, with Rich at the root. > > > > You can browse all of the data in a repository through the website, so you > > shouldn't have to clone. And you only need to Fork (a github concept, not > > git), if you want to push something different to your own public clone. > > > > Ultimately, what matters to GIT is the sha1 commit keys, which tell you a > > commit/tree is identical to another or not. I don't think you can tell > > about clones other than by looking at the sha1s or the Fork graphs that > > github draws. The forks graph only tells you about the clones that github > > knows about. > > > > And as Alex says, being the root doesn't really mean master, authoritative, > > or best. > > > > -Mike > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---