chiark / gitweb /
Move identification of parent branch's remote def up into stack class.
[stgit] / stgit / commands / pull.py
index e47858a732159d70c8d0bfb58b85ac02c9b75d48..0608fb60390f70db36ca682c1fe140575fc8d965 100644 (file)
@@ -53,7 +53,7 @@ def func(parser, options, args):
     if len(args) >= 1:
         repository = args[0]
     else:
-        repository = config.get('branch.%s.remote' % git.get_head_file()) or 'origin'
+        repository = crt_series.get_parent_remote()
 
     refspec = None
     if len(args) == 2: