drop unused content arg from commit function

This commit is contained in:
Joe Cross
2016-06-12 15:23:26 -07:00
parent 52884b2999
commit 7a80c1d730

View File

@ -281,7 +281,7 @@ def generate_values_in_date_order(image, multiplier=1):
yield image[h][w] * multiplier yield image[h][w] * multiplier
def commit(content, commitdate): def commit(commitdate):
template = ( template = (
'''GIT_AUTHOR_DATE={0} GIT_COMMITTER_DATE={1} ''' '''GIT_AUTHOR_DATE={0} GIT_COMMITTER_DATE={1} '''
'''git commit --allow-empty -m "gitfiti" > /dev/null\n''' '''git commit --allow-empty -m "gitfiti" > /dev/null\n'''
@ -308,8 +308,8 @@ def fake_it(image, start_date, username, repo, git_url, offset=0, multiplier=1):
strings = [] strings = []
for value, date in zip(generate_values_in_date_order(image, multiplier), for value, date in zip(generate_values_in_date_order(image, multiplier),
generate_next_dates(start_date, offset)): generate_next_dates(start_date, offset)):
for i in range(value): for _ in range(value):
strings.append(commit(i, date)) strings.append(commit(date))
return template.format(repo, ''.join(strings), git_url, username) return template.format(repo, ''.join(strings), git_url, username)