# [PATCH] Don't print "rebasing" if the head doesn't change

2 messages from 2007-02-04 to 2007-02-04. Participants: Pavel Roskin, Catalin Marinas.
Thread: https://gitlist.dev/t/6678

## Pavel Roskin, 2007-02-04 17:44

Subject: [PATCH] Don't print "rebasing" if the head doesn't change
Message-ID: <20070204174403.7926.29304.stgit@dv.roinet.com>
URL: https://gitlist.dev/e/20070204174403.7926.29304.stgit%40dv.roinet.com

```
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
Please ignore previous version of this patch; it was buggy.
---

 stgit/commands/pull.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py
index b63ef7a..2d4a782 100644
--- a/stgit/commands/pull.py
+++ b/stgit/commands/pull.py
@@ -73,8 +73,10 @@ def func(parser, options, args):
     print 'Pulling from "%s"...' % repository
     git.fetch(repository)
     if (config.get('stgit.pull-does-rebase') == 'yes'):
-        print 'rebasing to "%s"...' % git.fetch_head()
-        git.reset(tree_id = git.fetch_head())
+        fetch_head = git.fetch_head()
+        if fetch_head != git.get_head():
+            print 'rebasing to "%s"...' % fetch_head
+            git.reset(tree_id = fetch_head)
     print 'done'
 
     # push the patches back

```

## Catalin Marinas, 2007-02-04 22:27

Subject: Re: [PATCH] Don't print "rebasing" if the head doesn't change
Message-ID: <b0943d9e0702041427v655abd96oe44515f0942c7812@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0702041427v655abd96oe44515f0942c7812%40mail.gmail.com
In-Reply-To: <20070204174403.7926.29304.stgit@dv.roinet.com>

```
On 04/02/07, Pavel Roskin <proski@gnu.org> wrote:
> Signed-off-by: Pavel Roskin <proski@gnu.org>
> ---
> Please ignore previous version of this patch; it was buggy.

Applied, thanks.

-- 
Catalin

```
