summaryrefslogtreecommitdiff
path: root/git-parse-remote.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-30 19:33:33 -0700
committerJunio C Hamano <gitster@pobox.com>2011-03-30 19:33:41 -0700
commit2352570bf43368f3d3931f7b24bb7fd44e68eef3 (patch)
tree01616fd12ce997f6e0a10355990d0690b694eb2c /git-parse-remote.sh
parent806e0aba2e5d976233703e6ff517af10329e4048 (diff)
downloadgit-2352570bf43368f3d3931f7b24bb7fd44e68eef3.tar.gz
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 <gitster@pobox.com>
Diffstat (limited to 'git-parse-remote.sh')
-rw-r--r--git-parse-remote.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index d3782d9559..9b950be28d 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}
}