How do I clone or fork git repositories?

  3 posts   Feedicon  
Replies: 2 - Last Post: June 07, 2009 16:11
by: Frederic Jean
showing 1 - 3 of 3
 
Posted: June 06, 2009 15:38 by Logan Barnett

One of my users wants to submit code to the Rawr project, which is hosted as a git repository. The user doesn't have permission to submit code to the repo directly (and for now I'd like to keep it that way - so I can have an easy way to check the code/test coverage, etc without making it part of the main repo's history).

However, I don't see any mechanisms that allow the user to clone the project and push up the cloned branch/fork in a means similar to Github or Gitorious. Am I missing something?

 
Posted: June 07, 2009 15:48 by Edwin Goei
Users should be able to clone a git repo using one of the checkout URIs like git://kenai.com/rawr~mainline or ssh://edwingo@git.kenai.com/rawr~mainline where 'edwingo' happens to be my username and they can substitute their own (they also need to set up an ssh public key). For example:

$ git clone ssh://edwingo@git.kenai.com/rawr~mainline rawr

At this point, I'm not sure what you're asking. The user can modify their own code in the local clone (under rawr) since it is a separate repository. They have the option of sending you a patch using git patch tools which you can choose to apply to the main kenai repo or they can upload their changes to some other repo that they do have write access to and you can view their changes there. Does this answer your question?
 
Posted: June 07, 2009 16:11 by Frederic Jean
We currently do not have the ability to host a user's clone (or fork) of a project's repository at this point. The reason is that the code that deals with repositories are all project based. We have discussed providing a repository fork functionality in the past. We do have a few ideas on how to implement it, but we didn't quite get to it yet.

A potential solution would be for the user to create a project on Kenai, clone the rawr repository manually and then push it to their own project. It is clunky and heavily manual though.
Replies: 2 - Last Post: June 07, 2009 16:11
by: Frederic Jean
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close