-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 Lock: credential issue when using SSH #3084
Comments
It seems login failed since |
@flozz you need to setup auth in git to keep your credentials. I don't know why git doesn't ask for them like any other git command. |
I should also look again at git-lfs-authenticate in case of locks but if lfs blob are working locks should also. |
Looking further more at it, I may need change some code in git-lfs-authenticate for it to work for locks. For information: |
When I setup the credentials it still not working: content of my [core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = http://localhost:3000/test/test.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[gitg]
mainline = refs/heads/master
[credential "http://localhost:3000"]
username = test when I try to get locks:
Logs from gitea:
|
Only operation in https://github.com/git-lfs/git-lfs/blob/master/docs/api/batch.md (download or upload) should be receive by git-lfs-authenticate https://github.com/git-lfs/git-lfs/blob/master/docs/api/server-discovery.md#ssh so I will try to look what git client try to do. |
ok, i will try this tomorrow, thank you :) |
If not working, please add env variable GIT_TRACE=1 and GIT_CURL_VERBOSE=1 to running command we may see what happen under the hood. |
Ok, it works if I put both login and password in the repository url: [remote "origin"]
url = http://test:test@localhost:3000/test/test.git
fetch = +refs/heads/*:refs/remotes/origin/* |
The lock feature itself work, but I still have an issue with credentials: When I use ssh uri:
When I use http URI, I am prompted for my username and password (so it works):
Other Git LFS feature have no auth issue |
I confirm that the token methods via ssh that should work like other lfs is not working. I will need to test more what differ since it is the same methods request (upload, ...). |
- Adjust the warning and success text to be more representive (make them more green and yellow). They still confirm to AAA contrast. - For important, note and caution callout boxes make use of the light variants for the colors colors rather than the dark variant. - Resolves go-gitea#3084 (cherry picked from commit 515ccaa)
[x]
):Description
Hello,
I am testing the new git LFS lock feature and I have some issues.
When I try it on my own machine and server, I have the following error:
When I try on try.gitea.io, I have no error on push but I cannot get lock info:
I am probably doing it wrong, if someone can tell me where... :)
cc @sapk
The text was updated successfully, but these errors were encountered: