Skip to content

Commit

Permalink
copypac: Do not enforce source revision when revision is not specifie…
Browse files Browse the repository at this point in the history
…d on the command line
  • Loading branch information
dmach committed Jan 26, 2023
1 parent 208dbdf commit 53b9cc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -3349,9 +3349,8 @@ def do_copypac(self, subcmd, opts, *args):
if opts.message:
comment = opts.message
else:
if not rev:
rev = show_upstream_rev(src_apiurl, src_project, src_package)
comment = 'osc copypac from project:%s package:%s revision:%s' % (src_project, src_package, rev)
src_rev = rev or show_upstream_rev(src_apiurl, src_project, src_package)
comment = 'osc copypac from project:%s package:%s revision:%s' % (src_project, src_package, src_rev)
if opts.keep_link:
comment += ", using keep-link"
if opts.expand:
Expand Down

0 comments on commit 53b9cc3

Please sign in to comment.