Skip to content

Commit

Permalink
Builds: don't call git clean anymore (#11420)
Browse files Browse the repository at this point in the history
We used to call `git clean` because we used to re-use a previous cloned
repository. However, we are always starting from a fresh environment now.
  • Loading branch information
humitos authored Jun 18, 2024
1 parent e977d0d commit 44b2732
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion readthedocs/projects/tests/test_build_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,6 @@ def test_build_commands_executed(
record=False,
),
mock.call("git", "checkout", "--force", "origin/a1b2c3"),
mock.call("git", "clean", "-d", "-f", "-f"),
mock.call(
"git",
"ls-remote",
Expand Down
2 changes: 0 additions & 2 deletions readthedocs/vcs_support/backends/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,6 @@ def checkout(self, identifier=None):
# Checkout the correct identifier for this branch.
code, out, err = self.checkout_revision(identifier)

# Clean any remains of previous checkouts
self.run("git", "clean", "-d", "-f", "-f")
return code, out, err

def update_submodules(self, config):
Expand Down

0 comments on commit 44b2732

Please sign in to comment.