tg-export.sh: minor correction and efficiency
commit18965025af7a6bd3b7928496f7608c6cd544d84a
authorKyle J. McKay <mackyle@gmail.com>
Tue, 13 Jun 2017 04:39:42 +0000 (12 21:39 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 13 Jun 2017 04:39:42 +0000 (12 21:39 -0700)
treeb308ccc4a2d5a0e2d65f4acf6e1d99dfbb553051
parent22a5a5565b39a324625f10dc7433656bc9f4f16b
tg-export.sh: minor correction and efficiency

Replace big old unnecessarily long pipeline being used to resolve
a tag object into the commit it points to (if it dereferences to a
commit rather than something else) with a single git rev-parse call.

There is some question whether anything but a commit object can
even end up in such a location in the first place anymore.

However, since there are no tests for tg-export (yet) keep the
prior semantics intact with the replacement.

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