Comparing version 1.3.16 to 1.4.0
{ | ||
"name": "depsync", | ||
"version": "1.3.16", | ||
"version": "1.4.0", | ||
"author": "Dom Chen", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/domchen/depsync", |
@@ -42,3 +42,8 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
this.nonRecursive = nonRecursive; | ||
this.unfinishFile = path.join(path.dirname(this.configFile), ".git/.DEPS.unfinished"); | ||
let gitDir = path.join(path.dirname(this.configFile), ".git"); | ||
if (fs.existsSync(gitDir) && !fs.lstatSync(gitDir).isDirectory()) { | ||
this.unfinishFile = path.join(path.dirname(this.configFile), ".DEPS.unfinished"); | ||
} else { | ||
this.unfinishFile = path.join(gitDir, ".DEPS.unfinished"); | ||
} | ||
} | ||
@@ -45,0 +50,0 @@ |
53947
1241