Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion doltcli/dolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,19 +990,23 @@ def fetch(
remote: str = "origin",
refspecs: Union[str, List[str]] = None,
force: bool = False,
prune: bool = False,
**kwargs,
):
"""
Fetch the specified branch or list of branches from the remote provided, defaults to origin.
:param remote: the reomte to fetch from
:param remote: the remote to fetch from
:param refspecs: branch or branches to fetch
:param force: whether to override local history with remote
:param prune: deletes any local remote refs that are not present on the remote being fetched
:return:
"""
args = ["fetch"]

if force:
args.append("--force")
if prune:
args.append("--prune")
if remote:
args.append(remote)
if refspecs:
Expand Down