diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-30 19:33:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-30 19:33:41 -0700 |
commit | 2352570bf43368f3d3931f7b24bb7fd44e68eef3 (patch) | |
tree | 01616fd12ce997f6e0a10355990d0690b694eb2c | |
parent | 806e0aba2e5d976233703e6ff517af10329e4048 (diff) | |
download | git-2352570bf43368f3d3931f7b24bb7fd44e68eef3.tar.gz git-2352570bf43368f3d3931f7b24bb7fd44e68eef3.tar.xz |
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>
-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 d3782d955..9b950be28 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} } |