summaryrefslogtreecommitdiff
path: root/contrib/subtree
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-03-17 19:59:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-03-17 22:19:52 (GMT)
commitcba5e28426a5c9728d883171e4e5e287ab17136a (patch)
treed773ad2e3dcecd4cbed2f1a1b41c467556751434 /contrib/subtree
parent00eda23228acb68c85a76f977f4e59f82189ce3f (diff)
downloadgit-cba5e28426a5c9728d883171e4e5e287ab17136a.zip
git-cba5e28426a5c9728d883171e4e5e287ab17136a.tar.gz
git-cba5e28426a5c9728d883171e4e5e287ab17136a.tar.bz2
subtree: initialize "prefix" variable
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>
Diffstat (limited to 'contrib/subtree')
-rwxr-xr-xcontrib/subtree/git-subtree.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index dc59a91..db925ca 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -46,6 +46,7 @@ ignore_joins=
annotate=
squash=
message=
+prefix=
debug()
{