Skip to content

The api/v1/repos/owner/repos/raw/file always return 404 #426

Closed
@HZ89

Description

@HZ89

gitea log

2016/12/20 19:06:04 [...ules/context/repo.go:431 func1()] [E] RepoRef invalid repo: branch or tag not exist: refs/tags/v0.0.9/.drone.yml

but the file is exist

another debug log

[Macaron] 2016-12-19 20:05:13: Started GET /api/v1/repos/RPM_Builder/Youzu_RPMs/raw/refs/tags/v0.0.7/.drone.yml for 10.6.32.11
2016/12/19 20:05:13 [D] Session ID: baa92b60ead96381
2016/12/19 20:05:13 [D] CSRF Token: EFH7ydblUs6lrf4dWQiBukuE7Tw6MTQ4MjE0OTExMzcyOTI2Mjk0Mg==
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags/v0.0.7
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags/v0.0.7
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags/v0.0.7/.drone.yml
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags/v0.0.7/.drone.yml
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags/v0.0.7/.drone.yml
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags/v0.0.7/.drone.yml
2016/12/19 20:05:13 [...ules/context/repo.go:431 func1()] [E] RepoRef invalid repo: branch or tag not exist: refs/tags/v0.0.7/.drone.yml
2016/12/19 20:05:13 [D] Template: status/404

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions