Comparing version 1.3.8 to 1.3.10
{ | ||
"name": "depsync", | ||
"version": "1.3.8", | ||
"version": "1.3.10", | ||
"author": "Dom Chen", | ||
@@ -5,0 +5,0 @@ "homepage": "http://www.idom.me/", |
@@ -71,4 +71,5 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
let indexFile = path.join(item.dir, ".git", "index"); | ||
let tempLFSDir = path.join(item.dir + ".git", "lfs"); | ||
let tempIndexFile = path.join(item.dir + ".git", "index"); | ||
let gitBackupDir = path.join(item.dir, ".git.bak"); | ||
let tempLFSDir = path.join(gitBackupDir, "lfs"); | ||
let tempIndexFile = path.join(gitBackupDir, "index"); | ||
Utils.movePath(lfsDir, tempLFSDir); | ||
@@ -85,3 +86,3 @@ Utils.movePath(indexFile, tempIndexFile); | ||
Utils.movePath(tempIndexFile, indexFile); | ||
Utils.deleteEmptyDir(path.dirname(tempIndexFile)); | ||
Utils.deletePath(path.dirname(tempIndexFile)); | ||
process.env["GIT_LFS_SKIP_SMUDGE"] = "1"; | ||
@@ -88,0 +89,0 @@ Utils.exec("git reset --hard FETCH_HEAD && git clean -f -q", item.dir); |
@@ -58,2 +58,4 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
Utils.exec("git lfs pull", repoPath, false); | ||
} else { | ||
Utils.log(result); | ||
} | ||
@@ -60,0 +62,0 @@ } |
@@ -104,2 +104,4 @@ ////////////////////////////////////////////////////////////////////////////////////// | ||
function movePath(srcPath, dstPath) { | ||
srcPath = path.resolve(srcPath); | ||
dstPath = path.resolve(dstPath); | ||
if (!fs.existsSync(srcPath)) { | ||
@@ -109,2 +111,3 @@ return; | ||
try { | ||
createDirectory(path.dirname(dstPath)); | ||
fs.renameSync(srcPath, dstPath); | ||
@@ -111,0 +114,0 @@ } catch (e) { |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
52341
1237
0
2