chiark / gitweb /
Fix the rebasing with an external command
[stgit] / stgit / commands / pull.py
index ad485a5dfd25eb50e04e3001122d19649b9ec3d2..052ea2b6de47ea09d12f218bb9d137f47edf2faa 100644 (file)
@@ -78,13 +78,7 @@ def func(parser, options, args):
     check_conflicts()
     check_head_top_equal()
 
-    if policy == 'pull':
-        must_rebase = 0
-    elif policy == 'fetch-rebase':
-        must_rebase = 1
-    elif policy == 'rebase':
-        must_rebase = 1
-    else:
+    if policy not in ['pull', 'fetch-rebase', 'rebase']:
         raise GitConfigException, 'Unsupported pull-policy "%s"' % policy
 
     applied = prepare_rebase(force=options.force)