From a63632c94087e8b495116dafd320c42ca9eb43da Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 25 Oct 2017 18:04:58 -0600 Subject: [PATCH] note new error --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 0c645f3..4cbc8dc 100644 --- a/README.md +++ b/README.md @@ -69,3 +69,18 @@ Host git.example.com User gitea IdentityFile ~/.ssh/id_rsa ``` + +## Expect user 'foobar' but current user is: gitea + +``` +remote: 2017/10/25 23:53:10 [...s/setting/setting.go:625 NewContext()] [E] Expect user 'aj' but current user is: gitea +remote: error: hook declined to update refs/heads/master +To ssh://git.coolaj86.com:22042/coolaj86/hexdump.js.git + ! [remote rejected] master -> master (hook declined) +error: failed to push some refs to 'ssh://gitea@git.coolaj86.com:22042/coolaj86/hexdump.js.git' +``` + +If you copied a previous installation of gitea over to a new user, you may get this error. + +I haven't yet found where it comes from, but deleting the repository in the UI and re-adding it seems to do the trick +from what I can tell. Remember to `git fetch --all` first before deleting.