Use repo name rather than project team for the new deliverable file

The project team name is no longer a great default for when importing
history.  Use the 'basename' of the git repo we're importing instead.

Change-Id: I2ee75f116101d5712bd2fdc821c4f9bc3e60e2d0
This commit is contained in:
Tony Breeds 2016-06-17 11:08:52 +10:00 committed by Doug Hellmann
parent c73b48d6e0
commit c3148de50f
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ for series, milestones in sorted(series_data.items()):
if not os.path.exists(d):
print('creating directory %s' % d)
os.makedirs(d)
filename = '%s/%s.yaml' % (d, args.project)
filename = '%s/%s.yaml' % (d, os.path.basename(repo))
print('creating %s' % filename)
with open(filename, 'w') as f:
f.write('---\n')

View File

@ -102,7 +102,7 @@ for series, milestones in sorted(series_data.items()):
if not os.path.exists(d):
print('creating directory %s' % d)
os.makedirs(d)
filename = '%s/%s.yaml' % (d, args.project)
filename = '%s/%s.yaml' % (d, os.path.basename(repo))
print('creating %s' % filename)
with open(filename, 'w') as f:
f.write('---\n')