Skip to content

Commit c61a8ba

Browse files
committed
Fix the bug that untracked files under subdirectories are not removed.
1 parent 3b04a5a commit c61a8ba

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.3.11",
3+
"version": "1.3.12",
44
"author": "Dom Chen",
55
"homepage": "http://www.idom.me/",
66
"description": "Automatically synchronize the dependencies of a project by the DEPS configuration file.",

src/tasks/RepoTask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ RepoTask.prototype.run = function (callback) {
7979
Utils.exec("git fetch --depth 1 origin " + item.commit, item.dir);
8080
Utils.movePath(tempLFSDir, lfsBakDir);
8181
process.env["GIT_LFS_SKIP_SMUDGE"] = "1";
82-
Utils.exec("git reset --hard FETCH_HEAD && git clean -f -q", item.dir);
82+
Utils.exec("git reset --hard FETCH_HEAD && git clean -df -q", item.dir);
8383
callback && callback();
8484
};
8585

0 commit comments

Comments
 (0)