subtree: initialize "prefix" variable
authorJeff King <peff@peff.net>
Mon, 17 Mar 2014 19:59:47 +0000 (15:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Mar 2014 22:19:52 +0000 (15:19 -0700)
We parse the "--prefix" command-line option into the
"$prefix" shell variable. However, if we do not see such an
option, the variable is left with whatever value it had in
the environment. We should initialize it to a known value,
like we do for other variables.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/git-subtree.sh
index dc59a91031ea6815456e5c86f5494bf56858c0d1..db925ca76991c635ea53fe7f38d6608d08dfc4d5 100755 (executable)
@@ -46,6 +46,7 @@ ignore_joins=
 annotate=
 squash=
 message=
+prefix=
 
 debug()
 {