tg-push.sh: improve branch name checks
commited306bd234aff7e900ec2767637c2e876ad4e475
authorKyle J. McKay <mackyle@gmail.com>
Sat, 17 Mar 2018 12:18:33 +0000 (17 05:18 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 17 Mar 2018 12:18:33 +0000 (17 05:18 -0700)
tree7dc84006dba08043303bdd43ae4e880777f31a5c
parentfd43e21740dfed8d6eb0e5471a879689b6b2e786
tg-push.sh: improve branch name checks

* restore ability to push a non-TopGit HEAD
* fail when attempting to push an unborn HEAD
* use fully qualified ref names to avoid accidents
* do not try to push nothing at all

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