tg-create.sh: abort early if initial checkout would fail
commitf0c2168d0b03e55b21f8013ad73e837e3539c6bf
authorKyle J. McKay <mackyle@gmail.com>
Fri, 24 Feb 2017 06:02:19 +0000 (23 22:02 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 24 Feb 2017 06:02:19 +0000 (23 22:02 -0800)
treec8c9bfa284edca8ee42bb4fe8aa42d3d8fb93aa3
parentcf30951a2ae8b7323a46a59a1dbf11eb330a2133
tg-create.sh: abort early if initial checkout would fail

As part of branch creation, the first dependency (if there is one
and it has a tree different than HEAD's) needs to be checked out.

Abort early before collecting the .topmsg if that checkout would
fail for some reason.

Also add the same capability to the "ensure_clean_tree" function
if it's passed an argument.

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