Skip to content

Commit

Permalink
fix(sidecar): use list of args in git LFS commands (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Dec 12, 2022
1 parent 108a25e commit 113ca93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_services/git_services/init/cloner.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _temp_plaintext_credentials(self):
def _get_lfs_total_size_bytes(self) -> int:
"""Get the total size of all LFS files in bytes."""
try:
res = self.cli.git_lfs("ls-files --json")
res = self.cli.git_lfs("ls-files", "--json")
except GitCommandError:
return 0
res_json = json.loads(res)
Expand Down Expand Up @@ -160,7 +160,7 @@ def _clone(self, branch):
_, _, free_space_bytes = disk_usage(self.cli.repo_directory)
if free_space_bytes < total_lfs_size_bytes:
raise errors.NoDiskSpaceError
self.cli.git_lfs("install --local")
self.cli.git_lfs("install", "--local")
self.cli.git_lfs("pull")
try:
logging.info("Dealing with submodules")
Expand Down

0 comments on commit 113ca93

Please sign in to comment.