1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 05:08:42 +02:00

- do_submitrequest: --diff is not supported in a project working copy

This (partly) fixes issue #29.
This commit is contained in:
Marcus Huewe
2013-05-02 22:18:14 +02:00
parent 5e0ef46aed
commit 69150040c2

View File

@@ -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)