mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Don't clean user files when GIT CLEAN
The "x" option ignores the .gitignore -x Don’t use the standard ignore rules read from .gitignore (per directory) and $GIT_DIR/info/exclude, but do still use the ignore rules given with -e options. This allows removing all untracked files, including build products. This can be used (possibly in conjunction with git reset) to create a pristine working directory to test a clean build. http://git-scm.com/docs/git-clean
This commit is contained in:
parent
8b84e4f4bc
commit
81e4cfcd29
@ -419,7 +419,7 @@ class GitUpdateManager(UpdateManager):
|
||||
Calls git clean to remove all untracked files. Returns a bool depending
|
||||
on the call's success.
|
||||
"""
|
||||
output, err, exit_status = self._run_git(self._git_path, 'clean -d -fx ""') # @UnusedVariable
|
||||
output, err, exit_status = self._run_git(self._git_path, 'clean -df ""') # @UnusedVariable
|
||||
if exit_status == 0:
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user