From dd521b49b5a111f3e299f287d2aac7915eb6977d Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Fri, 8 Apr 2022 04:04:06 +0300 Subject: [PATCH] force git run from the same dir to clone --- src/ahriman/core/build_tools/sources.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ahriman/core/build_tools/sources.py b/src/ahriman/core/build_tools/sources.py index 849460ab..21eb9f9c 100644 --- a/src/ahriman/core/build_tools/sources.py +++ b/src/ahriman/core/build_tools/sources.py @@ -86,7 +86,8 @@ class Sources: Sources.logger.warning("%s is not initialized, but no remote provided", sources_dir) else: Sources.logger.info("clone remote %s to %s", remote, sources_dir) - Sources._check_output("git", "clone", remote, str(sources_dir), exception=None, logger=Sources.logger) + Sources._check_output("git", "clone", remote, str(sources_dir), + exception=None, cwd=sources_dir, logger=Sources.logger) # and now force reset to our branch Sources._check_output("git", "checkout", "--force", Sources._branch, exception=None, cwd=sources_dir, logger=Sources.logger)