summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 806e0ab)
raw | patch | inline | side by side (parent: 806e0ab)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 31 Mar 2011 02:33:33 +0000 (19:33 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 31 Mar 2011 02:33:41 +0000 (19:33 -0700) |
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>
Pointed out by Michael Schubert.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-parse-remote.sh | patch | blob | history |
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index d3782d9559af8a0b99262d37f99b6035bd69e320..9b950be28d75b173ed81d5cf83271e9a8c4e6dff 100644 (file)
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
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}
}