summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-31 02:33:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-31 02:33:53 (GMT)
commitbcef9b6327a7d0a01b9207a9cf0aa2783e12fb41 (patch)
treeb8c58a6d32224606ef37e9e0aa702626dff75880
parent17a02998078923f2d62811326d130de991d1a95a (diff)
parent2352570bf43368f3d3931f7b24bb7fd44e68eef3 (diff)
downloadgit-bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41.zip
git-bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41.tar.gz
git-bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41.tar.bz2
Merge branch 'maint'
* maint: parse-remote: typofix
-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 9168879..ea093d2 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}
}