improve git code with devstack functions 55/36355/6
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 16:52:17 +0000 (16:52 +0000)
commit6f825c7a95549824545b66fe3ab5b3ed53905a44
treee76d23519e650f6dba4ae7b6ee8dcc7bb1f1d51e
parent5c33b82efbc0f7e58bdcfc4288ce08b7b3c999f2
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