From e48b9617c8e072fdf52a4e4b98e8b58c1234f839 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Wed, 6 Aug 2025 19:16:22 -0700 Subject: [PATCH] Remote scans with --git-history=none now clone repositories with a working tree and scan the current files instead of erroring with 'No inputs to scan.' --- src/scanner/repos.rs | 2 +- tests/int_gitlab.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scanner/repos.rs b/src/scanner/repos.rs index 19f6b4d..c3bb8ba 100644 --- a/src/scanner/repos.rs +++ b/src/scanner/repos.rs @@ -69,7 +69,7 @@ pub fn clone_or_update_git_repos( } else { ProgressBar::hidden() }; - + for repo_url in repo_urls { let output_dir = { let datastore = datastore.lock().unwrap(); diff --git a/tests/int_gitlab.rs b/tests/int_gitlab.rs index 3903ddb..fa3e169 100644 --- a/tests/int_gitlab.rs +++ b/tests/int_gitlab.rs @@ -140,7 +140,6 @@ fn test_gitlab_remote_scan() -> Result<()> { Ok(()) } - #[test] fn test_gitlab_remote_scan_no_history() -> Result<()> { let temp_dir = TempDir::new().context("tmp dir")?; @@ -241,4 +240,4 @@ fn test_gitlab_remote_scan_no_history() -> Result<()> { drop(rt); Ok(()) -} \ No newline at end of file +}