mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
fix: Git Checkout with LFS: Project not found or inaccessible (OD-2612)
This commit is contained in:
parent
82fe2253ff
commit
3b0de1e0ec
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user