get project name from dir name

This commit is contained in:
oleg 2015-06-14 23:31:17 +03:00
parent 9f4be8976e
commit c4c3a73b01
4 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,4 @@
name: nci
# still cloning fake repo, coz no git support
scm:
type: mercurial

View File

@ -1,6 +1,4 @@
name: project1
scm:
type: mercurial
repository: ./test/repos/mercurial

View File

@ -1,5 +1,4 @@
{
"name": "project2",
"scm": {
"type": "mercurial",
"repository": "./test/repos/mercurial",

View File

@ -31,6 +31,7 @@ exports.load = function(baseDir, name, callback) {
exports.validateConfig(config, this.slot());
},
function(err, config) {
config.name = name;
config.dir = dir;
this.pass(config);
},