Support dirty submodules in changelog script.

This commit is contained in:
LexManos 2013-06-30 19:43:09 -07:00
parent be88b0f22f
commit fa965e5f7c
1 changed files with 5 additions and 0 deletions

View File

@ -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: