summaryrefslogtreecommitdiffstats
path: root/radar-base.sh
diff options
context:
space:
mode:
Diffstat (limited to 'radar-base.sh')
-rwxr-xr-xradar-base.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/radar-base.sh b/radar-base.sh
index 9527343..653f980 100755
--- a/radar-base.sh
+++ b/radar-base.sh
@@ -198,9 +198,9 @@ branch_ref() {
remote_branch_name() {
local localRef="$(branch_name)"
- local remote="$(git config --get-regexp "^branch\.$localRef\.remote" | awk '{print $2}')"
+ local remote="$(git config --get "branch.$localRef.remote")"
if [[ -n $remote ]]; then
- local remoteBranch="$(git config --get-regexp "^branch\.${localRef}\.merge" | awk -F'/' '{print $NF}')"
+ local remoteBranch="$(git config --get "branch.${localRef}.merge" | sed -e 's/^refs\/heads\///')"
if [[ -n $remoteBranch ]]; then
printf '%s/%s' $remote $remoteBranch
return 0