Turn the optional Git URL argument into a mandatory one.
This commit is contained in:
10
gitfiti.py
10
gitfiti.py
@ -278,8 +278,7 @@ def commit(content, commitdate):
|
|||||||
commitdate.isoformat())
|
commitdate.isoformat())
|
||||||
|
|
||||||
|
|
||||||
def fake_it(image, start_date, username, repo, offset=0, multiplier=1,
|
def fake_it(image, start_date, username, repo, git_url, offset=0, multiplier=1):
|
||||||
git_url='git@github.com'):
|
|
||||||
template = (
|
template = (
|
||||||
'#!/bin/bash\n'
|
'#!/bin/bash\n'
|
||||||
'REPO={0}\n'
|
'REPO={0}\n'
|
||||||
@ -380,12 +379,13 @@ def main():
|
|||||||
fake_it_multiplier = m * match
|
fake_it_multiplier = m * match
|
||||||
|
|
||||||
if not ghe:
|
if not ghe:
|
||||||
output = fake_it(image, start_date, username, repo, offset,
|
git_url = 'git@github.com'
|
||||||
|
output = fake_it(image, start_date, username, repo, git_url, offset,
|
||||||
fake_it_multiplier)
|
fake_it_multiplier)
|
||||||
else:
|
else:
|
||||||
git_url = request_user_input('Enter Git URL like git@site.github.com: ')
|
git_url = request_user_input('Enter Git URL like git@site.github.com: ')
|
||||||
output = fake_it(image, start_date, username, repo, offset,
|
output = fake_it(image, start_date, username, repo, git_url, offset,
|
||||||
fake_it_multiplier, git_url=git_url)
|
fake_it_multiplier)
|
||||||
|
|
||||||
save(output, 'gitfiti.sh')
|
save(output, 'gitfiti.sh')
|
||||||
print('gitfiti.sh saved.')
|
print('gitfiti.sh saved.')
|
||||||
|
Reference in New Issue
Block a user