Fix bug caused by lack of local variables in Bourne Shell (yuck)

Signed-off-by: Robin Green <greenrd@greenrd.org>
export: Again, only check for annihilation if a branch is tgish

Signed-off-by: Robin Green <greenrd@greenrd.org>
Merge commit 'refs/top-bases/t/checkout' into t/checkout
TopGit branch t/checkout annihilated.