Skip to content

Commit

Permalink
singled threaded transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-ya committed Jun 7, 2024
1 parent a94a51e commit 0f90519
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion outpostcli/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cli_version = "0.0.59"
cli_version = "0.0.60"
CLI_BINARY_NAME = "outpostcli"
33 changes: 33 additions & 0 deletions outpostcli/lfs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,39 @@ def enable_largefiles(path):
click.echo("Local repository set up for largefiles")


@lfs.command(name="disable-multipart")
@click.argument("path", type=str)
def enable_largefiles(path):
"""Configure your repository to enable upload of files > 5GB"""
local_path = os.path.abspath(path)

if not os.path.isdir(local_path):
click.echo("This does not look like a valid git repo.")
sys.exit(1)

subprocess.check_call(
"git config --unset lfs.customtransfer.multipart-basic.path".split(),
cwd=local_path,
)

subprocess.check_call(
["git", "config", "--unset", "lfs.customtransfer.multipart-basic.args"],
cwd=local_path,
)

subprocess.check_call(
[
"git",
"config",
"--unset",
"lfs.customtransfer.multipart-basic.concurrent",
],
cwd=local_path,
)

click.echo("multipart upload configs removed.")


@lfs.command(name=MULTIPART_UPLOAD_COMMAND_NAME)
def multipart_upload():
try:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "outpostcli"
version = "0.0.59"
version = "0.0.60"
description = "CLI for Outpost"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="outpostcli",
version="0.0.59",
version="0.0.60",
py_modules=["outpostcli"],
install_requires=["Click", "outpostkit"],
entry_points={
Expand Down

0 comments on commit 0f90519

Please sign in to comment.