Skip to content

Commit 70ddd86

Browse files
romtsnclaude
andcommitted
fix(code-mappings): Preserve case when inferring repo name from remote
Use get_repo_from_remote_preserve_case instead of get_repo_from_remote to avoid lowercasing the repository name, which would cause mismatches with Sentry's case-sensitive API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8f9babe commit 70ddd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/code_mappings/upload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
108108
})?;
109109
let remote_url = vcs::git_repo_remote_url(git_repo, remote_name)?;
110110
debug!("Found remote '{remote_name}': {remote_url}");
111-
let inferred = vcs::get_repo_from_remote(&remote_url);
111+
let inferred = vcs::get_repo_from_remote_preserve_case(&remote_url);
112112
if inferred.is_empty() {
113113
bail!("Could not parse repository name from remote URL: {remote_url}");
114114
}

0 commit comments

Comments
 (0)