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.
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! We accept bounties via Bountysource.
Didn't reproduce this.
@lunny No, neither could i on try.gitea.io. Just wondering if this was a bug and it was fixed. I can't find anything though.
I've restarted the app and the error has gone away. This occurs in gogs as well according to gogs#3641.
I agree with the details in the gogs issue that it is or was a caching issue. When a new docker image is available, i'll test again.
Looks like we can close that for now. Feel free to reopen the issue if you can reproduce it.
Please re-open:
Failed to update/create file 'etc/nginx/nginx.conf' with error: UpdateLocalCopyBranch [branch: master]: git pull origin master: exit status 1 - fatal: '/var/lib/gitea/repo/francoism90/dotfiles.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.
Renamed dotfiles repo to arch-config in GUI. Trying to create a new file within the GUI causes this issue.
Thanks!
EDIT:
After restarting gitea, the error is gone. Seems like a caching issue?
Which version are you in. @francoism90
@lunny master (1.0.0+215-ge921dcf5).
FYI I'm running gitea as proxy using nginx, could this cause the caching issues?
Thanks.
Cannot reproduce this. Could you mean:
New File and write something in file name and file content@lunny correct. After restarting the gitea.service, the error is gone.
So strange. Let's keep it open.
I think this has been fixed sometime. I cannot reproduce it again. See https://try.gitea.io/lunny/ftpserver/src/branch/master/ttt.md