chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98330c2
)
Correctly check the pull-does-rebase parameter in 'stg pull'.
author
Yann Dirson
<ydirson@altern.org>
Sat, 3 Feb 2007 16:04:20 +0000
(17:04 +0100)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Sat, 3 Feb 2007 22:04:59 +0000
(22:04 +0000)
Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/commands/pull.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/pull.py
b/stgit/commands/pull.py
index 15bbed6124f807ec3be211757a86acf3e0c9230e..330cc256d3f7bf410e9ade341dc1b4a3963504bc 100644
(file)
--- 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'