Commit c6317810 authored by Ivanq's avatar Ivanq

Handle unexisting .d

parent 8a3e2144
......@@ -1046,6 +1046,7 @@ class HgIndex {
let promise = Promise.resolve();
if(!this.isInline) {
promise = this.hg.readFile(this.name + ".d")
.catch(data => [])
.then(data => {
data = this.hg.concat(data, this.hg.stringToArray("u"), info.data);
return this.hg.writeFile(this.name + ".d", data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment