diff --git a/django/utils/version.py b/django/utils/version.py index 54b10e89d79..50be432942c 100644 --- a/django/utils/version.py +++ b/django/utils/version.py @@ -79,7 +79,7 @@ def get_git_changeset(): """ repo_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) git_log = subprocess.run( - ['git', 'log', '--pretty=format:%ct', '--quiet', '-1', 'HEAD'], + 'git log --pretty=format:%ct --quiet -1 HEAD', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, cwd=repo_dir, universal_newlines=True, )