diff options
author | Nail Samatov <sanail@yandex.ru> | 2022-02-07 18:13:58 +0300 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2022-02-08 09:11:12 +0100 |
commit | a054f3ce76c2aaeada7fc9b84f23a3eceb2f7708 (patch) | |
tree | 0da5ac962419ed9a02d9b8a4d0eec72984a7d5d9 /org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.20.target | |
parent | 7e752364a6000259b2ec3fc66e0314ba12e6c0d4 (diff) | |
download | jgit-a054f3ce76c2aaeada7fc9b84f23a3eceb2f7708.tar.gz jgit-a054f3ce76c2aaeada7fc9b84f23a3eceb2f7708.zip |
Support LFS Server URL without .git suffix
According to Git LFS documentation, URLs with and without .git suffix
should be supported. By default, Git LFS will append .git/info/lfs to
the end of a Git remote URL. To build the LFS server URL it will use:
Git Remote: https://git-server.com/foo/bar
LFS Server: https://git-server.com/foo/bar.git/info/lfs
Git Remote: https://git-server.com/foo/bar.git
LFS Server: https://git-server.com/foo/bar.git/info/lfs
Fix the LfsConnectionFactory accordingly. Move a utility method to
add the ".git" suffix if not present yet from FileResolver to
StringUtils and use it.
Bug: 578621
Change-Id: I8d3645872d5f03bb8e82c9c73647adb3e81ce484
Signed-off-by: Nail Samatov <sanail@yandex.ru>
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.20.target')
0 files changed, 0 insertions, 0 deletions