improve git code with devstack functions 61/36361/5
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 22 Jun 2017 05:49:25 +0000 (22:49 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 22 Jun 2017 09:15:23 +0000 (09:15 +0000)
commit502c5b07b53a49b708b7a6b71ed2dc5360829b9b
tree5f463e612c8b3e0fdbd5d98069f1c25b4bdd216d
parentf9e384775559bca42e25f2f0ee952e2e304e678b
improve git code with devstack functions

if we aren't re-cloning we still need to make sure
we update the branch/tag/commit to the version from the remote

so we need to fetch and then checkout again

it is more complicated.  Dockerfile does a shallow
clone, so we don't get all the remote ref information.

To clone a random remote commit id we have to unshallow

Change-Id: If15f504b6ff2cfdfc8894fd3b37e687a19616714
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
docker/exec_tests.sh