Comparing version 1.0.2 to 1.1.0
18
index.js
@@ -25,2 +25,5 @@ /** | ||
// githubname::checkoutname | ||
var SPLIT = '::'; | ||
// global array of clone/update failures | ||
@@ -75,2 +78,11 @@ // report these at the end | ||
function githubToCheckout(repo) { | ||
var parts = repo.split(SPLIT); | ||
if (parts.length === 1) { | ||
parts[1] = parts[0]; | ||
} | ||
// [githubName, checkoutName] | ||
return parts; | ||
} | ||
function cloneOrUpdate(repo, callback) { | ||
@@ -137,3 +149,4 @@ fs.exists(repo.to, function(result) { | ||
'--recurse', | ||
ACCESS + 'github.com/' + repo.from | ||
ACCESS + 'github.com/' + repo.from, | ||
path.basename(repo.to) | ||
]; | ||
@@ -169,3 +182,4 @@ if (options.branch) { | ||
folders[conf.dir] = 1; | ||
repos.push({from: conf.org + '/' + r + '.git', to: path.join(conf.dir, r)}); | ||
var repoNames = githubToCheckout(r); | ||
repos.push({from: conf.org + '/' + repoNames[0] + '.git', to: path.join(conf.dir, repoNames[1])}); | ||
}); | ||
@@ -172,0 +186,0 @@ }); |
{ | ||
"name": "bigstraw", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Get a bunch of git resources, fast", | ||
@@ -12,5 +12,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"async": "^0.8.0", | ||
"async": "^0.9.0", | ||
"colors": "^0.6.2", | ||
"nopt": "^2.2.1" | ||
"nopt": "^3.0.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": {}, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7760
7
220
+ Addedasync@0.9.2(transitive)
+ Addednopt@3.0.6(transitive)
- Removedasync@0.8.0(transitive)
- Removednopt@2.2.1(transitive)
Updatedasync@^0.9.0
Updatednopt@^3.0.0