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

Git lfs ignores lfs url and doesn't push or upload to lfs server #81

Open
Moult opened this issue Feb 15, 2019 · 2 comments
Open

Git lfs ignores lfs url and doesn't push or upload to lfs server #81

Moult opened this issue Feb 15, 2019 · 2 comments

Comments

@Moult
Copy link

Moult commented Feb 15, 2019

Steps:

  1. Set up lfs-test-server on http://mywebsite.com:9999 and run the lfs-test-server binary
  2. Verify lfs-test-server works by checking out the /mgmt, logging in, and adding in a user
  3. On my local, mkdir foo && cd foo && git init
  4. On my local, git lfs install && git lfs track "*.png" && cp /some/file.png . && git add file.png && git commit
  5. Add the line below to my "foo" repo's .gitconfig, .git/config, .lfsconfig. The line is what is suggested by the /mgmt page.
[lfs]
    url = "http://mywebsite.com:9999/"
  1. Verify that pngs are tracked by checking git lfs ls-files and the contents of .gitattributes which all look good.
  2. Still on local, in some other directory, do git clone /path/to/foo myfooclone
  3. Back in foo repo, do git remote add origin /path/to/myfooclone
  4. In foo repo, do git push origin master.

At this step, I expect it to push the commits to myfooclone, but upload LFS objects to the lfs.url. Instead, I just get a regular push as if git lfs wasn't doing anything. No errors, no activity on the git lfs server logs, no requests for authentication.

Ideas?

@Moult
Copy link
Author

Moult commented Feb 15, 2019

I should note that it works completely fine if my remote is something like [email protected]:bar.git, but I would intuitively expect that pushing to any "remote", even if the "remote" is on my own local HD, would trigger the LFS upload?

@bk2204
Copy link
Member

bk2204 commented Feb 19, 2019

Hey, thanks for writing in.

Can you run the git push origin master with GIT_TRACE=1 GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 so we can see what the push looks like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants