From 69150040c2e7ea49581d0e0d2663e34f1e006f23 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Thu, 2 May 2013 22:18:14 +0200 Subject: [PATCH] - do_submitrequest: --diff is not supported in a project working copy This (partly) fixes issue #29. --- osc/commandline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 17a5d42c..3fb3f49b 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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)