Skip to content

Commit 1fc7aa5

Browse files
committed
Add init command.
1 parent 8aafb8d commit 1fc7aa5

File tree

1 file changed

+4
-0
lines changed
  • coder-apps/common/vcs/app

1 file changed

+4
-0
lines changed

coder-apps/common/vcs/app/git.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ Git.prototype.git = function(/* command, args, options, callback */)
6767
return child;
6868
};
6969

70+
Git.prototype.init = function(callback) {
71+
this.git("init", this.path, { cwd: process.cwd() }, callback);
72+
};
73+
7074
Git.prototype.status = function(callback) {
7175
var result = Object.create(null);
7276

0 commit comments

Comments
 (0)