fix .addAll

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

View File

@ -12,8 +12,9 @@ export declare class GitRepo {
check(): boolean; check(): boolean;
/** /**
* stage all files in working directory * stage all files in working directory
* @executes SYNC
*/ */
addAll(dirPathArg: string): q.Promise<{}>; addAll(): q.Promise<{}>;
/** /**
* add a remote to the GitRepo * add a remote to the GitRepo
*/ */

File diff suppressed because one or more lines are too long

View File

@ -63,10 +63,10 @@ describe('smartgit', function () {
describe('.add', function () { describe('.add', function () {
it('should add a file to an existing repository', function () { it('should add a file to an existing repository', function () {
shelljs.exec(`(cd ${paths.temp1} && cp ../test.js .)`); shelljs.exec(`(cd ${paths.temp1} && cp ../test.js .)`);
testGitRepo.addAll(paths.temp1); testGitRepo.addAll();
}); });
}); });
describe('.check()', function (done) { describe('.check()', function () {
it('should check a git repo', function () { it('should check a git repo', function () {
let checkResult = testGitRepo.check(); let checkResult = testGitRepo.check();
should(checkResult).be.true(); should(checkResult).be.true();
@ -107,4 +107,4 @@ describe('smartgit', function () {
}); });
}); });
}); });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUVyQixJQUFJLE9BQU8sR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUE7QUFDaEMsNkJBQTZCO0FBQzdCLGlDQUFnQztBQUVoQywwQ0FBMEM7QUFDMUMsSUFBSSxLQUFLLEdBQUc7SUFDUixLQUFLLEVBQUUsSUFBSSxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUM7SUFDbkMsS0FBSyxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDO0lBQ3BDLEtBQUssRUFBRSxJQUF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QUUsUUFBUSxDQUFDO2lCQUMvQixJQUFJLENBQUM7Z0JBQ0YsSUFBSSxFQUFFLENBQUE7WUFDVixDQUFDLENBQUMsQ0FBQTtRQUNWLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7SUFDRixRQUFRLENBQUMsUUFBUSxFQUFFO1FBQ2YsRUFBRSxDQUFDLHFCQUFxQixFQUFFO1lBQ3RCLFdBQVcsQ0FBQyxTQUFTLENBQUMsU0FBUyxFQUFFLHVDQUF1QyxDQUFDLENBQUE7UUFDN0UsQ0FBQyxDQUFDLENBQUE7UUFDRixFQUFFLENBQUMsUUFBUSxFQUFFLFVBQVMsSUFBSTtZQUN0QixXQUFXLENBQUMsVUFBVSxFQUFFO2lCQUNuQixJQUFJLENBQUM7Z0JBQ0YsSUFBSSxFQUFFLENBQUE7WUFDVixDQUFDLENBQUMsQ0FBQTtRQUNWLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7QUFDTixDQUFDLENBQUMsQ0FBQSJ9

View File

@ -66,10 +66,10 @@ describe('smartgit', function () {
describe('.add', function () { describe('.add', function () {
it('should add a file to an existing repository', function () { it('should add a file to an existing repository', function () {
shelljs.exec(`(cd ${paths.temp1} && cp ../test.js .)`) shelljs.exec(`(cd ${paths.temp1} && cp ../test.js .)`)
testGitRepo.addAll(paths.temp1) testGitRepo.addAll()
}) })
}) })
describe('.check()', function(done) { describe('.check()', function() {
it('should check a git repo', function() { it('should check a git repo', function() {
let checkResult = testGitRepo.check() let checkResult = testGitRepo.check()
should(checkResult).be.true() should(checkResult).be.true()

View File

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