Skip to content

Commit 1973dfb

Browse files
committed
fixes nodegit#852 fixed tab issue PR nodegit#927
1 parent a717468 commit 1973dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/repository.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ Repository.prototype.createCommitOnHead = function(
535535
.then(function(treeOid) {
536536
return repo.getHeadCommit()
537537
.then(function(parent) {
538-
if (parent !== null) { // To handle a fresh repo with no commits
539-
parent = [parent];
540-
}
538+
if (parent !== null) { // To handle a fresh repo with no commits
539+
parent = [parent];
540+
}
541541
return repo.createCommit(
542542
"HEAD",
543543
author,

0 commit comments

Comments
 (0)