mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
- do_submitrequest: consider the "--yes" option if the wc has local modifications
This commit is contained in:
parent
8c506e5929
commit
c66a75018e
@ -1142,7 +1142,7 @@ class Osc(cmdln.Cmdln):
|
||||
'Please provide it the target via commandline arguments.' % p.name)
|
||||
|
||||
modified = [i for i in p.filenamelist if not p.status(i) in (' ', '?', 'S')]
|
||||
if len(modified) > 0:
|
||||
if len(modified) > 0 and not opts.yes:
|
||||
print('Your working copy has local modifications.')
|
||||
repl = raw_input('Proceed without committing the local changes? (y|N) ')
|
||||
if repl != 'y':
|
||||
|
Loading…
Reference in New Issue
Block a user