]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
doc,tests: force checkout of submodules 4078/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 18 Mar 2015 23:32:39 +0000 (00:32 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 18 Mar 2015 23:35:44 +0000 (00:35 +0100)
commitc7b02f5a7347ea8688c5214f85bb9f612925a586
treeb54e37e7a7df478ba2f594883de2741bba0aae88
parent1f58a0adc3b23785fac00083d721b62f6a4c44a1
doc,tests: force checkout of submodules

When updating submodules, always checkout even if the HEAD is the
desired commit hash (update --force) to avoid the following:

    * a directory gmock exists in hammer
    * a submodule gmock replaces the directory gmock in master
    * checkout master + submodule update : gmock/.git is created
    * checkout hammer : the gmock directory still contains the .git from
      master because it did not exist at the time and checkout won't
      remove untracked directories
    * checkout master + submodule update : git rev-parse HEAD is
      at the desired commit although the content of the gmock directory
      is from hammer

http://tracker.ceph.com/issues/11157 Fixes: #11157

Signed-off-by: Loic Dachary <ldachary@redhat.com>
autogen.sh