Skip to content

Commit bac0ab3

Browse files
John Haleymaxkorp
authored andcommitted
Removed console.logs from create-new-repo example
1 parent 325be7c commit bac0ab3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

example/create-new-repo.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,29 @@ var index;
1414

1515
fse.ensureDir(path.resolve(__dirname, repoDir))
1616
.then(function() {
17-
console.log('a');
1817
return nodegit.Repository.init(path.resolve(__dirname, repoDir), 0);
1918
})
2019
.then(function(repo) {
21-
console.log('b');
2220
repository = repo;
2321
return fse.writeFile(path.join(repository.workdir(), fileName), fileContent);
2422
})
2523
.then(function(){
26-
console.log('c');
2724
return repository.openIndex();
2825
})
2926
.then(function(idx) {
30-
console.log('d');
3127
index = idx;
3228
return index.read(1);
3329
})
3430
.then(function() {
35-
console.log('e');
3631
return index.addByPath(fileName);
3732
})
3833
.then(function() {
39-
console.log('f');
4034
return index.write();
4135
})
4236
.then(function() {
43-
console.log('g');
4437
return index.writeTree();
4538
})
4639
.then(function(oid) {
47-
console.log('j');
4840
var author = nodegit.Signature.create("Scott Chacon", "schacon@gmail.com", 123456789, 60);
4941
var committer = nodegit.Signature.create("Scott A Chacon", "scott@github.com", 987654321, 90);
5042

0 commit comments

Comments
 (0)