parse-remote: typofix
[git/git.git] / git-parse-remote.sh
index d3782d9..9b950be 100644 (file)
@@ -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}
 }