mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 10:36:17 +01:00
fix osc log without arguments
This commit is contained in:
parent
513d984c76
commit
2ba65c531a
@ -4150,14 +4150,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
if len(args) == 0:
|
||||
wd = os.curdir
|
||||
if is_project_dir(dir) or is_package_dir(dir):
|
||||
project = store_read_project(wd)
|
||||
if is_project_dir(dir):
|
||||
package = "_project"
|
||||
else:
|
||||
package = store_read_package(wd)
|
||||
if is_project_dir(wd) or is_package_dir(wd):
|
||||
project = store_read_project(wd)
|
||||
if is_project_dir(wd):
|
||||
package = "_project"
|
||||
else:
|
||||
package = store_read_package(wd)
|
||||
else:
|
||||
raise oscerr.WrongArgs('Local directory is not a checked out resource and no remote project/package given.')
|
||||
raise oscerr.NoWorkingCopy("Error: \"%s\" is not an osc working copy." % os.path.abspath(wd))
|
||||
elif len(args) < 1:
|
||||
raise oscerr.WrongArgs('Too few arguments (required none or two)')
|
||||
elif len(args) > 2:
|
||||
|
Loading…
Reference in New Issue
Block a user