tg-update.sh: allow detached return
commit8e9a6668f7633101df2682feaee3e18ce0beb002
authorKyle J. McKay <mackyle@gmail.com>
Thu, 23 Feb 2017 11:06:26 +0000 (23 03:06 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 23 Feb 2017 11:06:26 +0000 (23 03:06 -0800)
tree187ddda27bb0d6e3d4c9ad0e8e0ec0eca285b5d6
parent3834295db4d3c2dd6362a9d39b611d6594092d18
tg-update.sh: allow detached return

Allow tg update to return to a detached HEAD and also make
sure that HEAD is valid before starting the update.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
tg-update.sh