summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/_pipeline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py
index 80dd8b30a..31e68edbe 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -518,7 +518,7 @@ class Pipeline():
except OSError as e:
raise PipelineError("Failed to create workspace directory: {}".format(e)) from e
- if not force and os.listdir(directory):
+ if not no_checkout and not force and os.listdir(directory):
raise PipelineError("Checkout directory is not empty: {}".format(directory))
# Check for workspace config