File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ switch (cli.command) {
2020 case 'cl' :
2121 case 'clone' :
2222 var repository = cli . args [ 0 ] ;
23- gg . clone ( repository ) ;
23+
24+ if ( repository . substring ( 0 , 7 ) == 'http://' ) { // URL.
25+ gg . cloneURL ( repository ) ;
26+ } else {
27+ gg . cloneGitHub ( repository ) ;
28+ }
2429 break ;
2530
2631 // Add.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ exports.init = function() {
1717 } ) ;
1818} ;
1919
20- exports . clone = function ( repository ) {
20+ exports . cloneURL = function ( repository ) {
2121 // Nothing to clone.
2222 if ( ! repository ) {
2323 console . log ( notice ( '[~] You must enter a repository URL.' ) ) ;
@@ -40,6 +40,10 @@ exports.clone = function(repository) {
4040 }
4141} ;
4242
43+ exports . cloneGitHub = function ( repository ) {
44+ exports . cloneURL ( 'https://github.com/' + repository + '.git' ) ;
45+ }
46+
4347exports . addAll = function ( ) {
4448 exec ( 'git add -A' ) ;
4549
You can’t perform that action at this time.
0 commit comments