Browse Source

Merge branch 'maint'

* maint:
  parse-remote: typofix
maint
Junio C Hamano 14 years ago
parent
commit
bcef9b6327
  1. 2
      git-parse-remote.sh

2
git-parse-remote.sh

@ -6,7 +6,7 @@ GIT_DIR=$(git rev-parse -q --git-dir) || :; @@ -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="${curr_branch#refs/heads/}"
origin=$(git config --get "branch.$curr_branch.remote")
echo ${origin:-origin}
}

Loading…
Cancel
Save