We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17a0299 + 2352570 commit bcef9b6Copy full SHA for bcef9b6
git-parse-remote.sh
@@ -6,7 +6,7 @@ GIT_DIR=$(git rev-parse -q --git-dir) || :;
6
7
get_default_remote () {
8
curr_branch=$(git symbolic-ref -q HEAD)
9
- curr_branch="${cur_branch#refs/heads/}"
+ curr_branch="${curr_branch#refs/heads/}"
10
origin=$(git config --get "branch.$curr_branch.remote")
11
echo ${origin:-origin}
12
}
0 commit comments