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 # still cloning fake repo, coz no git support
scm: scm:
type: mercurial type: mercurial

View File

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

View File

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

View File

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