Skip to content

Commit

Permalink
Add other git url schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
j4b6ski committed Dec 8, 2024
1 parent a450031 commit e430e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sinol_make/commands/init/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def download_template(self, template_paths = [DEFAULT_TEMPLATE, DEFAULT_SUBDIR])
self.used_tmpdir = tempfile.TemporaryDirectory()
tmp_dir = self.used_tmpdir.name

is_url = template.startswith("https://") or template.startswith("git@")
is_url = template.startswith(('http://', 'https://', 'ssh://', 'git@', 'file://'))
print(('Cloning' if is_url else 'Copying') + ' template ' +
(f'{subdir} from {template}' if subdir else f'{template}'))
if is_url:
Expand Down

0 comments on commit e430e97

Please sign in to comment.