]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
tasks/workunit.py: specify the branch name when cloning a branch
authorKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 04:37:01 +0000 (12:37 +0800)
committerDan Mick <dan.mick@redhat.com>
Fri, 31 Mar 2017 03:30:09 +0000 (20:30 -0700)
commit9ca7ccf5f1739f731da8bf31260594aea3a2932d
treeb40265ac89526e7fc007cad79bd92a027b9d8bb7
parentb782b3716e873daf4c8f2db9286629556e1880aa
tasks/workunit.py: specify the branch name when cloning a branch

c1309fb failed to specify a branch when cloning using --depth=1, which
by default clones the HEAD. and we can not "git checkout" a specific
sha1 if it is not HEAD, after cloning using '--depth=1', so in this
change, we dispatch "tag", "branch", "HEAD" using three Refspec classes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Dan Mick <dan.mick@redhat.com>
qa/tasks/workunit.py