Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Pull Request 500 error #7636

Closed
2 of 7 tasks
xlouc opened this issue Jul 26, 2019 · 11 comments
Closed
2 of 7 tasks

Merge Pull Request 500 error #7636

xlouc opened this issue Jul 26, 2019 · 11 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@xlouc
Copy link

xlouc commented Jul 26, 2019

  • Gitea version (or commit ref): 1.9.0-rc2
  • Git version: 1.8.3.1
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2019/07/27 03:17:19 ...ters/private/hook.go:74:HookPreReceive() [E] Unable to detect force push between: 50c1b4fd7cba3172b4b0a72386708cf5a66a55eb and 8f9a3d87fbee0a03a94230aebd4b3c5fffd09b24 in 824741413200:yakcode/yak-ui Error: exit status 128 - fatal: Not a git repository (or any of the parent directories): .git

2019/07/27 03:17:19 routers/repo/pull.go:629:MergePullRequest() [E] Merge: git push: From /home/git/gitea/repositories/yakcode/yak-ui
         * [new branch]      develop    -> head_repo/develop
         * [new branch]      gh-pages   -> head_repo/gh-pages
         * [new branch]      master     -> head_repo/master
        Automatic merge went well; stopped before committing as requested
        remote: Gitea: Internal Server Error
        remote: Fail to detect force push: exit status 128 - fatal: Not a git repository (or any of the parent directories): .git
        remote:
        To /home/git/gitea/repositories/yakcode/yak-ui.git
         ! [remote rejected] master -> master (pre-receive hook declined)
        error: failed to push some refs to '/home/git/gitea/repositories/yakcode/yak-ui.git'

Description

...

Screenshots

微信截图_20190727032358

@xlouc
Copy link
Author

xlouc commented Jul 26, 2019

Errors occur only when branch protection is set
微信截图_20190727032358

@zeripath zeripath added issue/duplicate The issue has already been reported. and removed issue/duplicate The issue has already been reported. labels Jul 26, 2019
@zeripath
Copy link
Contributor

Hi! thanks for your report. I'm suspicious that this is a duplicate of #7611, which has been fixed in master with #7615 and 1.9 with #7618.

@lafriks lafriks added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Jul 27, 2019
@lunny
Copy link
Member

lunny commented Aug 6, 2019

The git version 1.8.3.1 is too low. Maybe it's related.

@lafriks
Copy link
Member

lafriks commented Aug 6, 2019

I think this is duplicate of #7754

@lunny
Copy link
Member

lunny commented Aug 6, 2019

It should be.

@lafriks lafriks closed this as completed Aug 6, 2019
@lafriks lafriks added issue/duplicate The issue has already been reported. and removed issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail labels Aug 6, 2019
@axeloz
Copy link

axeloz commented Aug 8, 2019

Hello, I'm using Gitea 1.9.0 and I have the exact same issue.
Trying to merge a pull request from "develop" to "master". Master branch is protected but I'm into the whitelist for merges.

Error message:

2019/08/08 14:15:15 routers/repo/pull.go:629:MergePullRequest() [E] Merge: git push: From /home/git/repositories/xxxxxxxxx/webservices
         * branch            develop    -> FETCH_HEAD
         * [new branch]      develop    -> head_repo/develop
        Automatic merge went well; stopped before committing as requested
        remote: Gitea: Internal Server Error
        remote: Fail to detect force push: exit status 128 - fatal: Not a git repository (or any of the parent directories): .git
        remote:
        To /home/git/repositories/xxxxxxxxx/webservices.git
         ! [remote rejected] master -> master (pre-receive hook declined)
        error: failed to push some refs to '/home/git/repositories/xxxxxxxxx/webservices.git'

Thanks

@lunny
Copy link
Member

lunny commented Aug 8, 2019

See #7754 and #7775

@axeloz
Copy link

axeloz commented Aug 9, 2019

thanks @lunny, so we must wait for the #7775 fix to be merged if I understand right

@joseluisq
Copy link

I'm facing the same issue for latest Gitea v1.10.0+dev-232-gf1c414882 with Postgres.
Waiting for #7775.

@lucastucious
Copy link

Same issue with gitea v1.11.1

@zeripath
Copy link
Contributor

zeripath commented Aug 5, 2020

@lucastucious it will not be the same issue.

Please update to 1.12 and open a new issue with logs and more detail

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

7 participants