Skip to content

Commit b0a6765

Browse files
committed
feat: add --no-mirror option
1 parent 537dbb8 commit b0a6765

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Changed
2+
3+
- `ggshield secret scan repo` now uses `git clone --mirror` to retrive more git objects

ggshield/cmd/secret/scan/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def repo_cmd(
6060

6161
if REGEX_GIT_URL.match(repository):
6262
with tempfile.TemporaryDirectory() as tmpdirname:
63-
git(["clone", repository, tmpdirname])
63+
git(["clone", "--mirror", repository, tmpdirname])
6464
scan_context.target_path = Path(tmpdirname)
6565
return scan_repo_path(
6666
client=client,

0 commit comments

Comments
 (0)