Skip to content

Commit

Permalink
Fix empty git scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzheng committed Sep 11, 2023
1 parent ab294cc commit 5910815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/vyos/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,9 @@ def upload(self, location: str):

# git clone
path_repository = Path(directory) / "repository"
scheme = f"{scheme}://" if scheme else ""
rc, out = rc_cmd(
[self.command, "clone", f"{scheme}://{netloc}{url}", str(path_repository), "--depth=1"],
[self.command, "clone", f"{scheme}{netloc}{url}", str(path_repository), "--depth=1"],
env=env,
shell=False,
)
Expand Down

0 comments on commit 5910815

Please sign in to comment.