fix branch handling in sphinx extension
Somewhere in the conversion from explicit arguments to configuration options the branch value was not being passed to the scanner from the sphinx extension. Change-Id: If430c76c8447b5e5d9d1e7d3a5caab104138c33c Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
9013febab8
commit
e2fe07d13f
|
@ -63,6 +63,8 @@ class ReleaseNotesDirective(rst.Directive):
|
|||
if 'earliest-version' in self.options:
|
||||
opt_overrides['earliest_version'] = self.options.get(
|
||||
'earliest-version')
|
||||
if branch:
|
||||
opt_overrides['branch'] = branch
|
||||
conf.override(**opt_overrides)
|
||||
|
||||
notesdir = os.path.join(relnotessubdir, conf.notesdir)
|
||||
|
@ -78,6 +80,7 @@ class ReleaseNotesDirective(rst.Directive):
|
|||
]
|
||||
else:
|
||||
versions = ldr.versions
|
||||
info('got versions %s' % (versions,))
|
||||
text = formatter.format_report(
|
||||
ldr,
|
||||
versions,
|
||||
|
|
Loading…
Reference in New Issue