We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f3aed commit 18f09fdCopy full SHA for 18f09fd
scripts/git_clean.R
@@ -1,2 +1,10 @@
1
-# run without --dry-run
2
-system("git clean -xfd -e node_modules -e revdep")
+# Check files that should be cleaned (ignoring directories)
+needs_cleaned <- system("git clean -xf --dry-run")
3
+
4
+if (length(needs_cleaned)) {
5
+ stop(
6
+ "There are untracked files in the repo. Please run",
7
+ "`git clean -xf --dry-run` to see what will be removed. ",
8
+ "Add --force to force removal of untracked files."
9
+ )
10
+}
0 commit comments