tg.sh: handle remote bases in new location
commitb8c5cb9fd9429d1fb1eaf08553f5f67d19ae00b6
authorKyle J. McKay <mackyle@gmail.com>
Sun, 5 Feb 2017 02:59:29 +0000 (4 18:59 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 5 Feb 2017 02:59:29 +0000 (4 18:59 -0800)
tree72df2d8a5c8fdc39b9c341248dae5d7d79239297
parentb65cdf66e8f0b313fa208d3f5133197c381f16b3
tg.sh: handle remote bases in new location

Different handling is needed for remote bases in the new
location compared to the old one as the leading "heads/"
must be stripped when using the new location.

With this change all commands should now operate correctly
in either the old or new location but only tg create (using
its -r name option) and tg revert (always) handle a mix of
old and new bases locations.

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