forked from mirrors/kingfisher
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:
parent
0b8e8fcc75
commit
e48b9617c8
2 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue