Skip to content

Commit 6e4c6d7

Browse files
runningcodeclaude
andcommitted
refactor: remove unused preserve_case parameter
Since git_repo_base_repo_name was removed and only the case-preserving version is used, eliminate the preserve_case parameter and conditional logic in git_repo_base_repo_name_impl. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6f24dd7 commit 6e4c6d7

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/utils/vcs.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,6 @@ fn find_merge_base_ref(
330330
/// Like git_repo_base_repo_name but preserves the original case of the repository name.
331331
/// This is used specifically for build upload where case preservation is important.
332332
pub fn git_repo_base_repo_name_preserve_case(repo: &git2::Repository) -> Result<Option<String>> {
333-
git_repo_base_repo_name_impl(repo, true)
334-
}
335-
336-
fn git_repo_base_repo_name_impl(
337-
repo: &git2::Repository,
338-
preserve_case: bool,
339-
) -> Result<Option<String>> {
340333
let remotes = repo.remotes()?;
341334
let remote_names: Vec<&str> = remotes.iter().flatten().collect();
342335

@@ -357,11 +350,7 @@ fn git_repo_base_repo_name_impl(
357350
match git_repo_remote_url(repo, chosen_remote) {
358351
Ok(remote_url) => {
359352
debug!("Found remote '{}': {}", chosen_remote, remote_url);
360-
let repo_name = if preserve_case {
361-
get_repo_from_remote_preserve_case(&remote_url)
362-
} else {
363-
get_repo_from_remote(&remote_url)
364-
};
353+
let repo_name = get_repo_from_remote_preserve_case(&remote_url);
365354
Ok(Some(repo_name))
366355
}
367356
Err(e) => {

0 commit comments

Comments
 (0)