tg.sh: allow --top-bases to work outside a git dir
commit8c26185b7489d7ef7d748accffb27c49abff9593
authorKyle J. McKay <mackyle@gmail.com>
Tue, 14 Mar 2017 02:13:44 +0000 (13 19:13 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 14 Mar 2017 02:13:44 +0000 (13 19:13 -0700)
treeb7600bcde3c314c09f24494d0ecf90164db2be45
parentc40a066c82b40469d7ab85828c561eec3ebc2309
tg.sh: allow --top-bases to work outside a git dir

When run outside a git dir it will tell the default location
for the TopGit bases refs based on the default and any possible
global/system configuration.

This allows one to find out the current default location without
needing to create an empty Git repository just for that purpose.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/t1020-top-bases-sniff-out.sh
tg.sh