mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
Merge pull request #1320 from dmach/fix-diff-no-args
Fix 'diff' command when no files are specified
This commit is contained in:
commit
00464e34a9
@ -4646,7 +4646,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
for i in pac.get_diff(rev1):
|
||||
diff += b''.join(i)
|
||||
else:
|
||||
files = args
|
||||
if args == ["."]:
|
||||
# parseargs() returns ["."] (list with workdir) if no args are specified
|
||||
# "." is illegal filename that causes server to return 400
|
||||
files = None
|
||||
else:
|
||||
files = args
|
||||
diff += server_diff_noex(pac.apiurl, pac.prjname, pac.name, rev1,
|
||||
pac.prjname, pac.name, rev2,
|
||||
not opts.plain, opts.missingok, opts.meta, not opts.unexpand, files=files)
|
||||
|
Loading…
Reference in New Issue
Block a user