From 871ea7f3d5213a760d083f9bebee823b3af0d56f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 14 Sep 2017 18:03:31 -0400 Subject: [PATCH] only touch the pipfile when it doesn't exist Signed-off-by: Kenneth Reitz --- pipenv/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index bff39ac5..13b667b7 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -381,7 +381,8 @@ def ensure_virtualenv(three=None, python=None): def ensure_project(three=None, python=None, validate=True, system=False, warn=True): """Ensures both Pipfile and virtualenv exist for the project.""" - project.touch_pipfile() + if not project.pipfile_exists: + project.touch_pipfile() # Skip virtualenv creation when --system was used. if not system: