500 error creating pull request for LFS repo #2227

Closed
opened 2025-11-02 04:28:25 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @DarkMorford on GitHub (Aug 21, 2018).

  • Gitea version (or commit ref): 1.5.0
  • Git version: 2.18.0.windows.1
  • Operating system: Windows Server 2016
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Creating a pull request on a repository that uses LFS produces a 500 error.

Relevant log snippet:

2018/08/21 10:19:06 [...routers/repo/pull.go:839 CompareAndPullRequestPost()] [E] PushToBaseRepo: Push: exit status 1 - batch request: missing protocol: "G:\\GitRepos\\storageteam\\qualificationtools.git/info/lfs"
error: failed to push some refs to 'G:\GitRepos\storageteam\qualificationtools.git'
Originally created by @DarkMorford on GitHub (Aug 21, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) 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.5.0 - Git version: 2.18.0.windows.1 - Operating system: Windows Server 2016 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant ## Description Creating a pull request on a repository that uses LFS produces a 500 error. Relevant log snippet: 2018/08/21 10:19:06 [...routers/repo/pull.go:839 CompareAndPullRequestPost()] [E] PushToBaseRepo: Push: exit status 1 - batch request: missing protocol: "G:\\GitRepos\\storageteam\\qualificationtools.git/info/lfs" error: failed to push some refs to 'G:\GitRepos\storageteam\qualificationtools.git'
GiteaMirror added the type/bugissue/duplicate labels 2025-11-02 04:28:25 -06:00
Author
Owner

@Akcaxup commented on GitHub (Aug 21, 2018):

Pull Request is not created if assigned participant in this moment.

@Akcaxup commented on GitHub (Aug 21, 2018): Pull Request is not created if assigned participant in this moment.
Author
Owner

@lafriks commented on GitHub (Aug 21, 2018):

I think there was already issue reported about this

@lafriks commented on GitHub (Aug 21, 2018): I think there was already issue reported about this
Author
Owner

@lunny commented on GitHub (Aug 22, 2018):

related with #4463, but that issue is merging issue not creating.

@lunny commented on GitHub (Aug 22, 2018): related with #4463, but that issue is merging issue not creating.
Author
Owner

@stale[bot] commented on GitHub (Jan 13, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 13, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@iCodeSometime commented on GitHub (Jan 24, 2019):

This is happening for me as well

@iCodeSometime commented on GitHub (Jan 24, 2019): This is happening for me as well
Author
Owner

@stale[bot] commented on GitHub (Mar 25, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Mar 25, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@zeripath commented on GitHub (May 26, 2019):

I think I've finally found the cause and a workaround:

I suspect that you have git-lfs version greater than 2.3.4 installed on your server and gitea user has a .gitconfig file containing:

[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true

If you remove that that should act as a workaround.

@zeripath commented on GitHub (May 26, 2019): I think I've finally found the cause and a workaround: I suspect that you have git-lfs version greater than 2.3.4 installed on your server and gitea user has a .gitconfig file containing: ```ini [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true ``` If you remove that that should act as a workaround.
Author
Owner

@zeripath commented on GitHub (May 27, 2019):

This is a duplicate of #732

@zeripath commented on GitHub (May 27, 2019): This is a duplicate of #732
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2227