tg: unset GIT_DIR when -C option encounteredtopgit-0.16
commite69a19bf01221d0461f3237a9e8ae9b3ab6ec215
authorKyle J. McKay <mackyle@gmail.com>
Sun, 14 Jun 2015 03:57:08 +0000 (13 20:57 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 14 Jun 2015 03:57:08 +0000 (13 20:57 -0700)
tree382e1c86a5268708774415e4e45ce01f06333780
parentd387d81ccba92d3cfb1086c8058873034b78a2da
tg: unset GIT_DIR when -C option encountered

If GIT_DIR is allowed to remain set, it will prevent the
directory specified by the -C <dir> option from taking effect.

Therefore unset GIT_DIR whenever we parse a -C <dir> option.

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