mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 01:06:15 +01:00
Fix 'diff' command when no files are specified
This commit is contained in:
parent
dc50e6c981
commit
1ad022a616
@ -4645,6 +4645,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if not rev2:
|
if not rev2:
|
||||||
for i in pac.get_diff(rev1):
|
for i in pac.get_diff(rev1):
|
||||||
diff += b''.join(i)
|
diff += b''.join(i)
|
||||||
|
else:
|
||||||
|
if args == ["."]:
|
||||||
|
# parseargs() returns ["."] (list with workdir) if no args are specified
|
||||||
|
# "." is illegal filename that causes server to return 400
|
||||||
|
files = None
|
||||||
else:
|
else:
|
||||||
files = args
|
files = args
|
||||||
diff += server_diff_noex(pac.apiurl, pac.prjname, pac.name, rev1,
|
diff += server_diff_noex(pac.apiurl, pac.prjname, pac.name, rev1,
|
||||||
|
Loading…
Reference in New Issue
Block a user