X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/925ff4a7136e29976b88a0d820fd883c6dae5b88..254d99f846f3427d21bc9224cd693bb4806d2d31:/stgit/commands/pull.py diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py index 227249e..0608fb6 100644 --- a/stgit/commands/pull.py +++ b/stgit/commands/pull.py @@ -50,10 +50,12 @@ def func(parser, options, args): if len(args) > 2: parser.error('incorrect number of arguments') - repository = 'origin' - refspec = None if len(args) >= 1: repository = args[0] + else: + repository = crt_series.get_parent_remote() + + refspec = None if len(args) == 2: refspec = args[1] @@ -82,8 +84,7 @@ def func(parser, options, args): push_patches(applied, options.merged) # maybe tidy up - repack = config.get('stgit', 'keepoptimized') - if repack == 'yes': + if config.get('stgit.keepoptimized') == 'yes': git.repack() print_crt_patch()