fix .addAll

This commit is contained in:
2016-12-31 23:17:03 +01:00
parent 07fd9b9fa7
commit 871fd55c5c
5 changed files with 16 additions and 13 deletions

View File

@ -22,11 +22,12 @@ export class GitRepo {
/**
* stage all files in working directory
* @executes SYNC
*/
addAll(dirPathArg: string) {
addAll() {
let done = q.defer()
plugins.shelljs.exec(`(cd ${dirPathArg} && git add -A && git status)`)
done.resolve(dirPathArg)
plugins.shelljs.exec(`(cd ${this.repoBase} && git add -A && git status)`)
done.resolve(this.repoBase)
return done.promise
};