From: Junio C Hamano Date: Thu, 31 Mar 2011 02:33:33 +0000 (-0700) Subject: parse-remote: typofix X-Git-Tag: v1.7.5-rc0~1^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2352570bf43368f3d3931f7b24bb7fd44e68eef3;p=git.git parse-remote: typofix An earlier patch had a trivial typo that two people did not notice. Pointed out by Michael Schubert. Signed-off-by: Junio C Hamano --- diff --git a/git-parse-remote.sh b/git-parse-remote.sh index d3782d955..9b950be28 100644 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -56,7 +56,7 @@ get_remote_url () { get_default_remote () { curr_branch=$(git symbolic-ref -q HEAD) - curr_branch="${cur_branch#refs/heads/}" + curr_branch="${curr_branch#refs/heads/}" origin=$(git config --get "branch.$curr_branch.remote") echo ${origin:-origin} }