tg-export.sh: construct playground before trying to use it
commit29557115ffbb30fca0c3138a94e51e03e5be8d76
authorKyle J. McKay <mackyle@gmail.com>
Tue, 20 Jun 2017 20:35:57 +0000 (20 13:35 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 20 Jun 2017 20:35:57 +0000 (20 13:35 -0700)
tree51c9ca0fdaa3d0f26ea00e35ff80a3b0005bfec8
parentd7125044b6571c606830c28abf583fdfb15a47f7
tg-export.sh: construct playground before trying to use it

When collapsing commits, tg export creates a "playground".

Part of this "playground" uses the branch name.

Branch names that are multi-level (e.g. "t/branch") require
construction (creation) of the necessary subdirectories first
before their playground can be used.

This was being done but not always soon enough in some cases.

Correct the problem and simplify the code in the process.  It
could be simplified even further but it's nice to avoid the
unnecessary mkdir calls when not needed.

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