public
Rubygem
Description: The official `github` command line helper for simplifying your GitHub experience.
Homepage: http://github.com
Clone URL: git://github.com/defunkt/github-gem.git
Add a clone command to clone new GitHub repos.
nex3 (author)
Tue May 06 01:26:17 -0700 2008
commit  f30bf257be6bb9b162e5a74db23ea92e5f2da238
tree    5be2d14c0a961b610db32a5718d27353fa4a273b
parent  b3d1fa0333cd2f44dfbbab8e57dcd8aa0d049755
...
52
53
54
 
 
 
 
 
 
 
 
 
 
 
 
...
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
0
@@ -52,3 +52,15 @@ GitHub.register :pull do |user, branch|
0
     git_exec "pull #{user} #{branch}"
0
   end
0
 end
0
+
0
+GitHub.describe :clone => "Clone a repo. Pass --ssh to clone from your own git@github.com schema."
0
+GitHub.register :clone do |user, repo|
0
+ user, repo = user.split('/') unless repo
0
+ die "Specify a repo to pull from" if repo.nil?
0
+
0
+ if options[:ssh]
0
+ git_exec "clone git@github.com:#{user}/#{repo}.git"
0
+ else
0
+ git_exec "clone git://github.com/#{user}/#{repo}.git"
0
+ end
0
+end

Comments

    No one has commented yet.