git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Correctly check the pull-does-rebase parameter in 'stg pull'.

From
Yann Dirson <ydirson@altern.org>
Date
Feb 3, 2007, 16:04 UTC
Message-ID
<20070203160420.32054.20462.stgit@gandelf.nowhere.earth>
In-Reply-To
<20070203160257.32054.17787.stgit@gandelf.nowhere.earth>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/commands/pull.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py
index 15bbed6..330cc25 100644
--- a/stgit/commands/pull.py
+++ b/stgit/commands/pull.py
@@ -72,7 +72,8 @@ def func(parser, options, args):
     # pull the remote changes
     print 'Pulling from "%s"...' % repository
     git.fetch(repository)
-    if (config.get('stgit.pull-does-rebase')):
+    if (config.get('stgit.pull-does-rebase') == 'yes'):
+        print "rebasing to '%s'..." % crt_series.get_parent_branch()
         git.reset(tree_id = git.rev_parse(crt_series.get_parent_branch()))
     print 'done'
 
Previous: Yann DirsonNext: Yann Dirson
Message 2 of 3 in “Minor stgit touches”
  1. 0/2 Minor stgit touchesYann Dirson, Feb 3, 2007
  2. 1/2 Correctly check the pull-does-rebase parameter in 'stg pull'.Yann Dirson, Feb 3, 2007
  3. 2/2 Warn the user when there is no parent information in the config.Yann Dirson, Feb 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.