Skip to content

Commit 0997c64

Browse files
authored
fix(buck): use mega_refs path for session and draft CL (#1995)
Signed-off-by: Wan Yidong <1360947433yd@gmail.com>
1 parent d8a3dbc commit 0997c64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ceres/src/api_service/mono_api_service.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2844,10 +2844,12 @@ impl MonoApiService {
28442844
.get_main_ref(&normalized_path)
28452845
.await?
28462846
.ok_or_else(|| MegaError::NotFound(format!("Path not found: {}", normalized_path)))?;
2847+
// Use canonical path from mega_refs as the single source of truth for repository path
2848+
let canonical_path = refs.path.clone();
28472849
let response = self
28482850
.storage
28492851
.buck_service
2850-
.create_session(username, &normalized_path, refs.ref_commit_hash)
2852+
.create_session(username, &canonical_path, refs.ref_commit_hash)
28512853
.await?;
28522854

28532855
Ok(response)

0 commit comments

Comments
 (0)