Align git helper funcs

This commit is contained in:
zvecr
2026-07-02 23:13:45 +01:00
parent 33eddecd6e
commit ebfc4e5812
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ from milc import cli
DEFAULT_UPSTREAM = 'https://github.com/qmk/qmk_firmware'
def git_clone(url, destination, branch):
def git_clone(destination, url, branch):
"""Add the qmk/qmk_firmware upstream to a qmk_firmware clone."""
git_clone = [
'git',
@@ -44,7 +44,7 @@ def git_set_upstream(destination):
git_remote = [
'git',
'-C',
destination,
str(destination),
'remote',
'add',
'upstream',
@@ -78,7 +78,7 @@ def git_clone_fork(destination, baseurl, fork, branch, force=False):
if force:
rmtree(destination)
if not git_clone(url, destination, branch):
if not git_clone(destination, url, branch):
return False
return git_set_upstream(destination)
+1 -1
View File
@@ -25,4 +25,4 @@ def clone(cli):
cli.log.error('Destination already exists: %s', cli.args.destination)
return False
return git_clone(git_url, cli.args.destination, cli.args.branch)
return git_clone(cli.args.destination, git_url, cli.args.branch)