Verified Commit b694331e authored by Andrej Shadura's avatar Andrej Shadura
Browse files

When trying to use the parent directory, use the correct variable



Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 280b62fc
......@@ -123,7 +123,7 @@ def do_dput(self, subcmd, opts, *args):
if osc.core.is_project_dir(cwd) or osc.core.is_package_dir(cwd):
proj_name = osc.core.store_read_project(cwd)
elif osc.core.is_project_dir(cwd.parent) or osc.core.is_package_dir(cwd.parent):
proj_name = osc.core.store_read_project(core.parent)
proj_name = osc.core.store_read_project(cwd.parent)
else:
raise WrongArgs('Can\'t guess the project name and none passed.')
print("Automatically detected the project to submit changes to:", proj_name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment