هذا الالتزام موجود في:
Thomas Miceli
2023-03-14 23:26:39 +01:00
الأصل 8630f647c6
التزام 1607d8fc93
9 ملفات معدلة مع 235 إضافات و86 حذوفات

عرض الملف

@@ -50,12 +50,9 @@ func gitHttp(ctx echo.Context) error {
strings.HasSuffix(ctx.Request().URL.Path, "git-upload-pack") ||
ctx.Request().Method == "GET"
repositoryPath, err := git.GetRepositoryPath(gist.User.Username, gist.Uuid)
if err != nil {
return errorRes(500, "Cannot get repository path", err)
}
repositoryPath := git.RepositoryPath(gist.User.Username, gist.Uuid)
if _, err = os.Stat(repositoryPath); os.IsNotExist(err) {
if _, err := os.Stat(repositoryPath); os.IsNotExist(err) {
if err != nil {
return errorRes(500, "Repository does not exist", err)
}