Skip to content

Commit 897d9f6

Browse files
authored
Merge pull request #9 from aclark4life/main
Install the pre-commit hook
2 parents 246b296 + 109332d commit 897d9f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: django_mongodb_cli/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def repo_clone(repo_entry, url_pattern, branch_pattern, repo):
131131
git.Repo.clone_from(repo_url, clone_path)
132132
except git.exc.GitCommandError as e:
133133
click.echo(f"Failed to clone repository: {e}")
134+
subprocess.run(["pre-commit", "install"], cwd=clone_path)
134135
else:
135136
click.echo(f"Skipping {repo_url} in {clone_path} (branch: {branch})")
136137

0 commit comments

Comments
 (0)