mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 17:16:12 +01:00
- do_submitrequest: --diff is not supported in a project working copy
This (partly) fixes issue #29.
This commit is contained in:
parent
5e0ef46aed
commit
69150040c2
@ -911,6 +911,8 @@ class Osc(cmdln.Cmdln):
|
||||
apiurl = self.get_api_url()
|
||||
|
||||
if len(args) < 2 and is_project_dir(os.getcwd()):
|
||||
if opts.diff:
|
||||
raise oscerr.WrongOptions('\'--diff\' is not supported in a project working copy')
|
||||
import cgi
|
||||
project = store_read_project(os.curdir)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user