Skip to content

Error on commit (in UI) after renaming a repository #670

Closed
@KangoV

Description

@KangoV
  • Gitea version (or commit ref): 1.0.0+109-ge5620f07
  • Git version: 2.8.3
  • Operating system: docker container: Linux 0c196eb4ba0f 4.4.0-53-generic 74-Ubuntu SMP (alpine 3.4.6)
  • Database:
    • PostgreSQL (v9.6.1)
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (works fine)
    • Not relevant
  • Log gist:

Description

I've renamed a repository from repository-model to domain-model. I've tried editing README.md in the Gitea UI and get this:

Failed to update/create file 'README.md' with error: 
UpdateLocalCopyBranch [branch: master]: git pull origin master: exit status 1 - fatal: 
    '/data/git/gitea-repositories/monkeys/repository-model.git' does not appear to be 
    a git repository fatal: Could not read from remote repository. Please make sure you 
    have the correct access rights and the repository exists.
  • The repository name has been changed correctly in the database.
  • The repository in gitea-repositories has been changed correctly.

I'm not sure where the old name is being picked up from.

But, A commit from Eclipse remotely works fine. This is only failing using the Gitea UI.
Update: After committing successfully from Eclipse, it still fails in the UI with the same error.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40953475-error-on-commit-in-ui-after-renaming-a-repository?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions