On Tue, Oct 20, 2020 at 04:07:05PM +0800, Li Yuanchao wrote:
sometimes the testcase needs a specific version software, add upstream_tag can help find the specific version.
Signed-off-by: Li Yuanchao lyc163mail@163.com
sbin/auto_submit | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/sbin/auto_submit b/sbin/auto_submit index 1f55701..d96859b 100755 --- a/sbin/auto_submit +++ b/sbin/auto_submit @@ -34,6 +34,8 @@ class AutoSubmit commit_date = `git -C /srv/git/#{newrefs_info['git_repo']}.git log --format=%ct -1 #{commit_id}` real_argvs.push("upstream_branch=#{branch.delete_prefix('refs/heads/')}") real_argvs.push("upstream_commit=#{commit_id}")
tag = %x(git -C /srv/git/#{newrefs_info['git_repo']}.git tag --points-at #{commit_id} | cat)
Remove
| cat
real_argvs.push("upstream_tag=#{tag}")
What if no tag?
Thanks, Fengguang
real_argvs.push("commit_date=#{commit_date}") system(real_argvs.join(' '))
-- 2.23.0