X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/87c6953990e0cf1522df4816f33674362303035f..c73e63b7d7733f1308c2c0c504144e93062bb489:/stgit/commands/pull.py diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py index 7c5db22..e47858a 100644 --- a/stgit/commands/pull.py +++ b/stgit/commands/pull.py @@ -53,11 +53,7 @@ def func(parser, options, args): if len(args) >= 1: repository = args[0] else: - section = 'branch "%s"' % git.get_head_file() - if config.has_option(section, 'remote'): - repository = config.get(section, 'remote') - else: - repository = 'origin' + repository = config.get('branch.%s.remote' % git.get_head_file()) or 'origin' refspec = None if len(args) == 2: @@ -88,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()