Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 31 Mar 2011 02:33:53 +0000
(19:33 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 31 Mar 2011 02:33:53 +0000
(19:33 -0700)
* maint:
parse-remote: typofix
git-parse-remote.sh
patch
|
blob
|
history
raw
(from parent 1:
17a0299
)
diff --git
a/git-parse-remote.sh
b/git-parse-remote.sh
index 91688792a2eb28d6f6a84fae81f1ae390bd49b45..ea093d251d98af6a3d4df19e900d56df34d51572 100644
(file)
--- 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="${cur
r
_branch#refs/heads/}"
origin=$(git config --get "branch.$curr_branch.remote")
echo ${origin:-origin}
}