From 8aedb1c28f4bafb1c52d6e06d912ef082847e032 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Fri, 28 Jul 2023 08:22:29 +0200 Subject: [PATCH] Change pop_project_package_from_args() to use get_store() to support Git SCM --- osc/commandline.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 2cf69148..86559f4c 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -676,9 +676,8 @@ def pop_project_package_from_args( if project == ".": # project name taken from the working copy - project_store = osc_store.Store(path) try: - project_store = osc_store.Store(path) + project_store = osc_store.get_store(path) project = project_store.project except oscerr.NoWorkingCopy: if not project_is_optional: @@ -688,7 +687,7 @@ def pop_project_package_from_args( if package == ".": # package name taken from the working copy try: - package_store = osc_store.Store(path) + package_store = osc_store.get_store(path) package_store.assert_is_package() package = package_store.package except oscerr.NoWorkingCopy: