Skip to content

Commit 2339b4e

Browse files
committed
Fix the 'Hook already exists' error when downloading Git LFS files.
1 parent ebe4bb4 commit 2339b4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "depsync",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"author": "Dom Chen",
55
"homepage": "https://github.com/domchen/depsync",
66
"description": "Automatically synchronize the dependencies of a project by the DEPS configuration file.",

src/tasks/SubRepoTask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ SubRepoTask.prototype.run = function (callback) {
4949
if (fs.existsSync(lfsConfig)) {
5050
let prePushFile = path.resolve(repoPath, ".git", "hooks", "pre-push");
5151
if (!LFSInited && !fs.existsSync(prePushFile)) {
52-
Utils.exec("git lfs install", repoPath, true);
52+
Utils.exec("git lfs install --force", repoPath, true);
5353
LFSInited = true;
5454
}
5555
let result = Utils.execSafe("git lfs fsck", repoPath);

0 commit comments

Comments
 (0)