Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
make copy_ref globally available
[gitweb.git]
/
git-parse-remote.sh
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
@@
-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="${cur
r
_branch#refs/heads/}"
origin=$(git config --get "branch.$curr_branch.remote")
echo ${origin:-origin}
}