From b6a48c22a3c614b6f7ffbff13fc1a2840d84c564 Mon Sep 17 00:00:00 2001 From: Vasily Kleschov Date: Tue, 6 Feb 2024 19:52:26 +0100 Subject: [PATCH] Fixed pulling changes on existing repo --- alma_tests_cacher/cacher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alma_tests_cacher/cacher.py b/alma_tests_cacher/cacher.py index 2a4afef..077f1f8 100644 --- a/alma_tests_cacher/cacher.py +++ b/alma_tests_cacher/cacher.py @@ -175,6 +175,7 @@ async def process_repo( self.gerrit_username, ) repo_dir = Path(workdir, repo_dirname) + self.logger.debug('Repository directory: %s', repo_dir) if not repo_dir.exists(): self.logger.info('Start cloning git repo: %s', repo.url) exit_code, stdout, stderr = clone_git_repo(workdir, repo.url) @@ -189,7 +190,7 @@ async def process_repo( 'Pulling the latest changes for git repo: %s', repo.url, ) - exit_code, stdout, stderr = git_pull(workdir) + exit_code, stdout, stderr = git_pull(str(repo_dir)) self.logger.debug( 'Pull result:\nexit_code: %s\nstdout: %s\nstderr: %s', exit_code,