@matheusbsbs / matheus-bagliano / commits / 0d12e59f63
Fork 0

pull: replace unnecessary sed invocation

Getting the shortened branch name is as easy as using the shell's parameter expansion. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stephen Boyd committed Mar 17, 2010 at 22:10 UTC 0d12e59f636b68964c80a82a58020d34a6cd5032
1 file changed +1 -1
git-pull.sh
+1 -1
@@ -41,7 +41,7 @@ strategy_args= diffstat= no_commit= squash= no_ff= ff_only=
41 log_arg= verbosity=
42 merge_args=
43 curr_branch=$(git symbolic-ref -q HEAD)
44 -curr_branch_short=$(echo "$curr_branch" | sed "s|refs/heads/||")
44 +curr_branch_short="${curr_branch#refs/heads/}"
45 rebase=$(git config --bool branch.$curr_branch_short.rebase)
46 while :
47 do