Support dirty submodules in changelog script.
This commit is contained in:
parent
be88b0f22f
commit
fa965e5f7c
1 changed files with 5 additions and 0 deletions
|
@ -28,11 +28,16 @@ def main(options, args):
|
|||
start = line[19:]
|
||||
elif line[0:18] == '+Subproject commit':
|
||||
end = line[19:]
|
||||
if end.endswith('-dirty'):
|
||||
end = end[0:len(end)-6]
|
||||
|
||||
if start == None or end == None:
|
||||
print('Could not extract start and end range')
|
||||
sys.exit(1)
|
||||
|
||||
print('Start: %s' % start)
|
||||
print('End: %s' % end)
|
||||
|
||||
output = run_command(['git', 'log', '--reverse', '--pretty=oneline', '%s...%s' % (start, end)], './fml')
|
||||
print('Updated FML:')
|
||||
for line in output:
|
||||
|
|
Loading…
Reference in a new issue