Permalink
Browse files

misc

  • Loading branch information...
1 parent 45f2a3f commit d0a8c20861f7106aac305c2f9804affc4ce3b454 @cadorn cadorn committed Jan 27, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 lib/pinf-loader-js/downloader.js
  2. +1 −1 lib/pinf-loader-js/loader.js
  3. +1 −1 package.json
@@ -453,6 +453,7 @@ Downloader.prototype.doDownload = function(url, path, callback, options)
}
else
{
+ // TODO: Use expect to authorize hostkey or ensure host key is authorised before calling git.
SYSTEM.exec("git clone " + "git@github.com:" + m[1] + "/" + m[2] + ".git " + repoPath, function(stdout, stderr)
{
if (stderr)
@@ -518,7 +518,7 @@ var boot = exports.boot = function(options)
if (cliOptions["sub-path"])
{
API.DEBUG.print("Using sub-path: " + cliOptions["sub-path"]);
- path += "/" + cliOptions["sub-path"];
+ path = path.replace(/\/(program\.json)?$/, "") + "/" + cliOptions["sub-path"];
}
path = path.split("/");
View
@@ -1,7 +1,7 @@
{
"uid": "http://registry.pinf.org/pinf.org/github/loader-js/",
"name": "pinf-loader-js",
- "version": "0.3.11",
+ "version": "0.3.12",
"label": "CommonJS Module Loader",
"description": "Versatile & Complete Cross-Platform CommonJS JavaScript Module, Package & Program Loader",
"homepage": "https://github.com/pinf/loader-js",

0 comments on commit d0a8c20

Please sign in to comment.