We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f01a7 commit 80f821aCopy full SHA for 80f821a
gitprof/cli/clone.py
@@ -79,7 +79,7 @@ def do_clone(
79
@click.argument("repo")
80
@click.option("-p", "--profile", help="Which profile to clone the repo with")
81
def clone(repo: str, profile: str):
82
- profile = command_utils.choose_profile_interactive(
+ profile: Profile = command_utils.choose_profile_interactive(
83
profile, title="Choose a profile to clone with"
84
)
85
@@ -110,7 +110,7 @@ def clone(repo: str, profile: str):
110
print(f"Error: can't find your SSH key at '{ssh_key}'.")
111
sys.exit(1)
112
113
- dest = re.findall(r".*/(.*?)\.git", repo)[0]
+ dest = re.findall(r"^.*/(.*?)(?:\.git)?$", repo)[0]
114
ssh_command = ssh.get_ssh_command(ssh_key)
115
116
do_clone(ssh_command, repo, dest)
0 commit comments