X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-pull.sh;h=246a3a4b373dba87877204c90c9f808dfa93c45c;hb=6b3020a241e2c0a1eaa6b74a10a796603bb90975;hp=38331a861106c63bf5f421dbe03f4aafe949812e;hpb=3bd8de57279492e34d4e4525c7498651a027f3d9;p=git.git diff --git a/git-pull.sh b/git-pull.sh index 38331a861..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