]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerKefu Chai <kchai@redhat.com>
Fri, 7 Apr 2017 05:30:07 +0000 (13:30 +0800)
commitfdc71e75cd6361be49c4c20e77d3bdff017b38bf
tree29435b9eaa96feac0a8c42a286a1e62ccb3d2fcd
parent6c14a803894d71bae858705855551a44bdf9bf67
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>
(cherry picked from commit 9ca7ccf5f1739f731da8bf31260594aea3a2932d)

Conflicts:
qa/tasks/workunit.py (trivial resolution)
qa/tasks/workunit.py