Merging pull request throwing 500 internal server error: bad revision #3943

Closed
opened 2025-11-02 05:31:20 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hanhpv on GitHub (Sep 12, 2019).

  • Gitea version (or commit ref): 1.9.3
  • Git version: 1.8.3.1
  • Operating system: CentOS 7.6
  • 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:

Description

Steps to reproduce:

  • create a new branch
  • push branch
  • create a new pull request, it will be available to be merged automatically according to Gitea
  • clicking the "Merge Pull Request" button results in a 500 error

Log message:

2019/09/12 19:48:00 routers/repo/pull.go:629:MergePullRequest() [E] Merge: getDiffTree: git diff-tree [/var/lib/gitea/data/tmp/local-repo/merge-664547743.git base:master head:head_repo/deploy_fi]: fatal: bad revision 'head_repo/deploy_fi'

Screenshots

Screen Shot 2019-09-12 at 7 52 10 PM
Originally created by @hanhpv on GitHub (Sep 12, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.9.3 - Git version: 1.8.3.1 - Operating system: CentOS 7.6 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Steps to reproduce: * create a new branch * push branch * create a new pull request, it will be available to be merged automatically according to Gitea * clicking the "Merge Pull Request" button results in a 500 error Log message: ```2019/09/12 19:48:00 routers/repo/pull.go:629:MergePullRequest() [E] Merge: getDiffTree: git diff-tree [/var/lib/gitea/data/tmp/local-repo/merge-664547743.git base:master head:head_repo/deploy_fi]: fatal: bad revision 'head_repo/deploy_fi'``` ## Screenshots <img width="937" alt="Screen Shot 2019-09-12 at 7 52 10 PM" src="https://user-images.githubusercontent.com/5069672/64785544-d6f98c00-d596-11e9-81a8-6c1a2dc2f70d.png">
Author
Owner

@hanhpv commented on GitHub (Sep 12, 2019):

Duplicated of #8133

@hanhpv commented on GitHub (Sep 12, 2019): Duplicated of #8133
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3943