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

LFS: unable to push objects tracked by git LFS #3101

Closed
2 of 7 tasks
flozz opened this issue Dec 6, 2017 · 5 comments · Fixed by #3092
Closed
2 of 7 tasks

LFS: unable to push objects tracked by git LFS #3101

flozz opened this issue Dec 6, 2017 · 5 comments · Fixed by #3092
Labels
Milestone

Comments

@flozz
Copy link

flozz commented Dec 6, 2017

Description

I am not able to push objects tracked by git LFS anymore (tester on latest master). Steps to reproduce:

$ git git clone http://localhost:3000/test/test-lfs.git
Cloning into 'test-lfs'...
warning: You appear to have cloned an empty repository.

$ cd test-lfs

$ git lfs install
Updated git hooks.
Git LFS initialized.

$ git lfs track "*.txt" --lockable
Tracking "*.txt"

$ echo test > foobar.txt

$ git add -A
warning: CRLF will be replaced by LF in .gitattributes.
The file will have its original line endings in your working directory.

$ git commit -m test
[master (root-commit) 8fdb137] test
 2 files changed, 4 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 foobar.txt

$ git push
Username for 'http://localhost:3000': test
Password for 'http://test@localhost:3000': 
Username for 'http://localhost:3000': test
Password for 'http://test@localhost:3000': 
Locking support detected on remote "origin". Consider enabling it with:
  $ git config lfs.http://localhost:3000/test/test-lfs.git/info/lfs.locksverify true
Git LFS: (0 of 1 files) 0 B / 5 B                                                                               
LFS: Repository or object not found: http://localhost:3000/test/test-lfs/info/lfs/objects/f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2
Check that it exists and that you have proper access to it
error: failed to push some refs to 'http://localhost:3000/test/test-lfs.git'
@flozz
Copy link
Author

flozz commented Dec 6, 2017

LFS seems to be broken since PR #3016:

commit c80d147 works
commit 4035ab0 do not work

@sapk are you already working on this in your PR #3092 or is this a different bug?

@sapk
Copy link
Member

sapk commented Dec 6, 2017

This shoudl be fix by 93726dc in the PR your reference. tests are failing since the docker image used for testing need to be updated. I will rebase to restart the tessts on drone.

@flozz
Copy link
Author

flozz commented Dec 6, 2017

Ok thank you, I will test with this commit then :D

@flozz
Copy link
Author

flozz commented Dec 6, 2017

I confirm it works with latest commit of PR #3092 :)

@sapk
Copy link
Member

sapk commented Dec 6, 2017

I hope to finish it tonigth. ;-)

@lunny lunny added the type/bug label Dec 7, 2017
@lunny lunny added this to the 1.4.0 milestone Dec 7, 2017
@rainwf2 rainwf2 mentioned this issue Jan 31, 2019
5 tasks
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants