# [PATCH] pull: remove extra space from reflog message

2 messages from 2011-07-20 to 2011-07-20. Participants: Ori Avtalion, Andreas Schwab.
Thread: https://gitlist.dev/t/27866

## Ori Avtalion, 2011-07-20 21:19

Subject: [PATCH] pull: remove extra space from reflog message
Message-ID: <4e2747c1.c6cae30a.0ff2.29e0@mx.google.com>
URL: https://gitlist.dev/e/4e2747c1.c6cae30a.0ff2.29e0%40mx.google.com

```
When executing "git pull" with no arguments, the reflog message was:
  "pull : Fast-forward"

Signed-off-by: Ori Avtalion <ori@avtalion.name>
---
 git-pull.sh |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/git-pull.sh b/git-pull.sh
index a10b129..a305978 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -10,7 +10,11 @@ SUBDIRECTORY_OK=Yes
 OPTIONS_SPEC=
 . git-sh-setup
 . git-sh-i18n
-set_reflog_action "pull $*"
+if [ $# -gt 0 ]; then
+	set_reflog_action "pull $*"
+else
+	set_reflog_action "pull"
+fi
 require_work_tree
 cd_to_toplevel
 
-- 
1.7.4.1

```

## Andreas Schwab, 2011-07-20 22:22

Subject: Re: [PATCH] pull: remove extra space from reflog message
Message-ID: <m2livssico.fsf@igel.home>
URL: https://gitlist.dev/e/m2livssico.fsf%40igel.home
In-Reply-To: <4e2747c1.c6cae30a.0ff2.29e0@mx.google.com>

```
Ori Avtalion <ori@avtalion.name> writes:

> -set_reflog_action "pull $*"
> +if [ $# -gt 0 ]; then
> +	set_reflog_action "pull $*"
> +else
> +	set_reflog_action "pull"
> +fi

Or more tersely:

set_reflog_action "pull${1+ $*}"

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

```
