summaryrefslogtreecommitdiff
path: root/contrib/subtree/git-subtree.sh
diff options
context:
space:
mode:
authorAlexey Shumkin <alex.crezoff@gmail.com>2015-09-04 22:24:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-08 18:09:13 (GMT)
commit5b6ab38bd31790d072aabbc23fe936ba5e1b072a (patch)
tree18a16efc8e7ad34a3d6e7fa9d5acb7e8e6990c7e /contrib/subtree/git-subtree.sh
parentc61eb4106d9ea77ba770c28a018cafa3b81b927e (diff)
downloadgit-5b6ab38bd31790d072aabbc23fe936ba5e1b072a.zip
git-5b6ab38bd31790d072aabbc23fe936ba5e1b072a.tar.gz
git-5b6ab38bd31790d072aabbc23fe936ba5e1b072a.tar.bz2
contrib/subtree: respect spaces in a repository path
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 72a20c0..308b777 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