Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add --http switch to tusk clone to use http instead of the git protocol.

  • Loading branch information...
commit c0e87b3aa5cf7d97014f68761f7a30e7eb2a1d5b 1 parent b59fe14
Paul Baumgart authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 packages/tusk/lib/tusk/commands/clone.js
View
13 packages/tusk/lib/tusk/commands/clone.js
@@ -25,6 +25,10 @@ parser.option('-s', '--ssh', 'ssh')
.help('clone using the git@github.com style url.')
.set(true);
+parser.option('--http', 'http')
+ .help('close using http instead of the git protocol')
+ .set(true);
+
parser.action(function (options) {
exports.clone.call(this, options, options.args);
});
@@ -58,7 +62,14 @@ exports.clone = function (options, names) {
'/' + githubName + '.git'
):
(
- 'git://github.com/' +
+ (options.http ?
+ (
+ 'http'
+ ):
+ (
+ 'git'
+ )) +
+ '://github.com/' +
user + '/' + githubName + '.git'
),
targetPath

0 comments on commit c0e87b3

Please sign in to comment.
Something went wrong with that request. Please try again.