X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-pull.sh;h=246a3a4b373dba87877204c90c9f808dfa93c45c;hb=08bb03e4754cf285c0fe49d22d2b8ce13d7609a2;hp=2de4c3aa70c10203aebe4e117b30422e39f41e02;hpb=78bc024ab075f4d5d9cc0b6540b538f3d93d04cb;p=git.git diff --git a/git-pull.sh b/git-pull.sh index 2de4c3aa7..246a3a4b3 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -41,7 +41,7 @@ strategy_args= diffstat= no_commit= squash= no_ff= ff_only= log_arg= verbosity= merge_args= curr_branch=$(git symbolic-ref -q HEAD) -curr_branch_short=$(echo "$curr_branch" | sed "s|refs/heads/||") +curr_branch_short="${curr_branch#refs/heads/}" rebase=$(git config --bool branch.$curr_branch_short.rebase) while : do @@ -275,7 +275,7 @@ true) *) eval="git-merge $diffstat $no_commit $squash $no_ff $ff_only" eval="$eval $log_arg $strategy_args $merge_args" - eval="$eval \"$merge_name\" HEAD $merge_head $verbosity" + eval="$eval \"\$merge_name\" HEAD $merge_head $verbosity" ;; esac eval "exec $eval"