summaryrefslogtreecommitdiff
path: root/contrib/subtree/git-subtree.sh
diff options
context:
space:
mode:
authorAlexey Shumkin <alex.crezoff@gmail.com>2015-09-05 01:24:11 +0300
committerJunio C Hamano <gitster@pobox.com>2015-09-08 11:09:13 -0700
commit5b6ab38bd31790d072aabbc23fe936ba5e1b072a (patch)
tree18a16efc8e7ad34a3d6e7fa9d5acb7e8e6990c7e /contrib/subtree/git-subtree.sh
parentc61eb4106d9ea77ba770c28a018cafa3b81b927e (diff)
downloadgit-5b6ab38bd31790d072aabbc23fe936ba5e1b072a.tar.gz
contrib/subtree: respect spaces in a repository pathas/subtree-with-spaces
Remote repository may have spaces in its path, so take it into account. Also, as far as there are no tests for the `push` command, add them. Signed-off-by: Alexey Shumkin <Alex.Crezoff@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/subtree/git-subtree.sh')
-rwxr-xr-xcontrib/subtree/git-subtree.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 72a20c0c2d..308b777b0a 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -735,7 +735,7 @@ cmd_push()
refspec=$2
echo "git push using: " $repository $refspec
localrev=$(git subtree split --prefix="$prefix") || die
- git push $repository $localrev:refs/heads/$refspec
+ git push "$repository" $localrev:refs/heads/$refspec
else
die "'$dir' must already exist. Try 'git subtree add'."
fi