Skip to content

Commit

Permalink
drop unused content arg from commit function
Browse files Browse the repository at this point in the history
  • Loading branch information
numberoverzero committed Jun 12, 2016
1 parent 52884b2 commit 7a80c1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitfiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def generate_values_in_date_order(image, multiplier=1):
yield image[h][w] * multiplier


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

return template.format(repo, ''.join(strings), git_url, username)

Expand Down

0 comments on commit 7a80c1d

Please sign in to comment.