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.'

This commit is contained in:
Mick Grove 2025-08-06 19:16:22 -07:00
commit e48b9617c8
2 changed files with 2 additions and 3 deletions

View file

@ -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();

View file

@ -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(())
}
}