don't fail to check out some modules in pinned mode
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>
Fri, 25 Nov 2016 19:07:05 +0000 (20:07 +0100)
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>
Wed, 30 Nov 2016 15:12:13 +0000 (15:12 +0000)
commit150071b395e7c81a9af08469f4cb2f69c2838480
tree404c6ef2779ddb093cd200ea94bce36ba89e2c82
parent977f0841e46f9a4249526f93cbfbf540210c76e6
don't fail to check out some modules in pinned mode

when used without the --branch option, we clone with --no-checkout, to
avoid unnecessarily checking out files twice when the recorded sha1
doesn't happen to be the tip of the default branch. however, that would
leave the index in a dirty state which would make the subsequent
submodule update abort at some point, silently.

to deal with the problem, we ignore this type of index dirtyness and use
submodule update with --force.

Task-number: QTBUG-57289
Change-Id: I6fc9693b0eaadfb04d2d80f9c8f1f2e11be47ae9
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
init-repository