Skip to content

Commit

Permalink
fixed handling git_clone_params
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Oct 14, 2021
1 parent 308cc39 commit 2f77b74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/kraken/server/gitops.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def get_repo_commits_since(branch_id, prev_run, repo_url, repo_branch, git_cfg):
def get_schema_from_repo(repo_url, repo_branch, repo_access_token, schema_file, git_clone_params): # pylint: disable=unused-argument
with tempfile.TemporaryDirectory(prefix='kraken-git-') as tmpdir:
# clone repo
if not git_clone_params:
git_clone_params = ''
cmd = "git clone --depth 1 --single-branch --branch %s %s '%s' repo" % (repo_branch, git_clone_params, repo_url)
p = _run(cmd, check=False, cwd=tmpdir, capture_output=True, text=True)
if p.returncode != 0:
Expand Down

0 comments on commit 2f77b74

Please sign in to comment.