diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-31 04:33:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-31 04:33:53 +0200 |
commit | bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41 (patch) | |
tree | b8c58a6d32224606ef37e9e0aa702626dff75880 /git-parse-remote.sh | |
parent | Merge branch 'maint' (diff) | |
parent | parse-remote: typofix (diff) | |
download | git-bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41.tar.xz git-bcef9b6327a7d0a01b9207a9cf0aa2783e12fb41.zip |
Merge branch 'maint'
* maint:
parse-remote: typofix
Diffstat (limited to 'git-parse-remote.sh')
-rw-r--r-- | git-parse-remote.sh | 2 |
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} } |