summaryrefslogtreecommitdiff
path: root/git-parse-remote.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-30 19:33:53 -0700
committerJunio C Hamano <gitster@pobox.com>2011-03-30 19:33:53 -0700
commitbcef9b6327a7d0a01b9207a9cf0aa2783e12fb41 (patch)
treeb8c58a6d32224606ef37e9e0aa702626dff75880 /git-parse-remote.sh
parent17a02998078923f2d62811326d130de991d1a95a (diff)
parent2352570bf43368f3d3931f7b24bb7fd44e68eef3 (diff)
downloadgit-bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41.tar.gz
Merge branch 'maint'
* maint: parse-remote: typofix
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 91688792a2..ea093d251d 100644
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
@@ -6,7 +6,7 @@ GIT_DIR=$(git rev-parse -q --git-dir) || :;
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}
}