fix: Git Checkout with LFS: Project not found or inaccessible (OD-2612)

This commit is contained in:
Robin Shen 2025-11-27 20:34:26 +08:00
parent 82fe2253ff
commit 3b0de1e0ec

View File

@ -152,7 +152,7 @@ public class GitLfsFilter implements Filter {
}
private String getProjectPath(String pathInfo) {
String projectPath = substringBeforeLast(pathInfo, ".git/");
String projectPath = substringBeforeLast(substringBeforeLast(pathInfo, ".git.git/"), ".git/");
if (StringUtils.isBlank(projectPath))
throw new ExplicitException("Project not specified");
return decodeFullRepoNameAsPath(projectPath);