The docker image did not install git-lfs #2225

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

Originally created by @Haixing-Hu on GitHub (Aug 21, 2018).

  • Gitea version (or commit ref): Gitea version ce7c64c built with: bindata, sqlite
  • Git version: git version 2.15.2
  • Operating system: docker image gitea/gitea
  • 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

The docker image of gitea did not install git-lfs. Therefore the client side could commit lfs objects but cannot pull lfs objects.

Following procedure will reproduce the problem:

  • install a docker image gitea/gitea
  • create a repository and add some binary file.
  • git lfs track the binary file.
  • push to the repository
  • try to clone the repository in another place. It will fail to pull the lfs object.

Screenshots

Originally created by @Haixing-Hu 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): Gitea version ce7c64c built with: bindata, sqlite - Git version: git version 2.15.2 - Operating system: docker image gitea/gitea - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description The docker image of gitea did not install git-lfs. Therefore the client side could commit lfs objects but cannot pull lfs objects. Following procedure will reproduce the problem: - install a docker image gitea/gitea - create a repository and add some binary file. - git lfs track the binary file. - push to the repository - try to clone the repository in another place. It will fail to pull the lfs object. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/needs-feedback label 2025-11-02 04:28:18 -06:00
Author
Owner

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

But server does not need to have git-lfs installed for it to work on client side

@lafriks commented on GitHub (Aug 21, 2018): But server does not need to have git-lfs installed for it to work on client side
Author
Owner

@Haixing-Hu commented on GitHub (Aug 23, 2018):

@lafriks No,the server must have the git-lfs installed to make the gitea work correctly. If the server has no git-lfs, checking out a lfs repository always failed. But if it installed, checking out succeeds.

@Haixing-Hu commented on GitHub (Aug 23, 2018): @lafriks No,the server must have the git-lfs installed to make the gitea work correctly. If the server has no git-lfs, checking out a lfs repository always failed. But if it installed, checking out succeeds.
Author
Owner

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

Are you talking about editing files from UI?

@lafriks commented on GitHub (Aug 24, 2018): Are you talking about editing files from UI?
Author
Owner

@sapk commented on GitHub (Aug 24, 2018):

@Haixing-Hu Can you provide more details on an example/story when gitea failed because it missed git-lfs ? For exemple what command you used.

@sapk commented on GitHub (Aug 24, 2018): @Haixing-Hu Can you provide more details on an example/story when gitea failed because it missed git-lfs ? For exemple what command you used.
Author
Owner

@techknowlogick commented on GitHub (Oct 29, 2018):

@Haixing-Hu following up on @sapk's question. Would you be able to provide more details?

@techknowlogick commented on GitHub (Oct 29, 2018): @Haixing-Hu following up on @sapk's question. Would you be able to provide more details?
Author
Owner

@techknowlogick commented on GitHub (Nov 29, 2018):

Closing as needs-feedback. Please re-open if needed.

@techknowlogick commented on GitHub (Nov 29, 2018): Closing as needs-feedback. Please re-open if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2225