Skip to content

Commit d13f013

Browse files
committed
Don't remove the index lock.
1 parent 8ab11b5 commit d13f013

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/repository.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,12 +1409,7 @@ Repository.prototype.stageLines =
14091409
});
14101410
};
14111411

1412-
var indexLock = repo.path().replace(".git/", "") + ".git/index.lock";
1413-
1414-
return fse.remove(indexLock)
1415-
.then(function() {
1416-
return repo.openIndex();
1417-
})
1412+
return repo.openIndex()
14181413
.then(function(indexResult) {
14191414
index = indexResult;
14201415
return index.read(1);

0 commit comments

Comments
 (0)