Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Apply help:questions about jgit redirect problem

There is an unified proxy here.



At 2022-04-07 17:37:46, "李津京" <lijinjing123@xxxxxxx> wrote:

Hi all
        The JDK version I use is 1.8 and 12, I want to clone repository from our company codes repo.
        The function I use is as below, the git username and password are correct, which I could use by "git clone https://username:passwor@code.baidu.com/baidu/***/***"
        

        But when I run the code, it gives back an exception as:
       2022-04-07 16:28:07,200  INFO ExceptionAdvice:46 - [21],服务业务异常,20005,https://username@xxxxxxxxxxxxxxx/baidu/***/***: Redirection blocked: redirect https://username@xxxxxxxxxxxxxxx/baidu/***/***/ -> http://icode.baidu.com?service=git-upload-pack not allowed

        I‘ve search online found that jgit already supports redirection in 1.8 at least, but which exception confused me a lot, I want to use Jgit package to clone locally.
        And I  want to  ask a help, thanks

Melessa
Thanks alot





 



 


Back to the top