fix cloning of tagged versions
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>
Wed, 2 Nov 2016 17:59:19 +0000 (18:59 +0100)
committerLiang Qi <liang.qi@qt.io>
Fri, 4 Nov 2016 12:42:26 +0000 (12:42 +0000)
commit71ed40b0ace06eaa54ec41b2ad622911a94643be
tree89c9624a8b23c1efcf50304e27eeaf9f14d1264e
parent4cbc319413df1328df002dec311e6015977f8ec8
fix cloning of tagged versions

the .gitmodules of tagged commits typically refers to a release branch
which was deleted shortly after the release. consequently, git clone
--branch is bound to fail.

of course, cloning a fixed sha1/tag requires no branch in the first
place, so revert back to using git clone --no-checkout in that case.

amends ac6168c0c.

Task-number: QTBUG-49133
Change-Id: Ica032f1d07a70ad89f16b23bdf5cdab785612fdc
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
init-repository