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
Search Repo:
Merge branch 'master' of git://github.com/nex3/github-gem into nex3/master
defunkt (author)
Sun May 11 19:37:52 -0700 2008
commit  da2bee280d979db3ca851d0c1d800d93b110935d
tree    df38fde38269bb4d3d5b84d355fa58a47f182498
parent  af8cfb367df0a76aec274c16af26936bcb9de1da parent  f30bf257be6bb9b162e5a74db23ea92e5f2da238
...
52
53
54
 
 
 
 
 
 
 
 
 
 
 
 
...
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
0
@@ -52,4 +52,16 @@
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.