Fix issue with using cgit client to fetch without authentication

CGit client passes empty username and password when not specified
in the configuration and this causes fetch operation failure.
To avoid the issue check if username/password is empty. If yes
skip git client authentication.

Bug: Issue 40015565
Change-Id: Ibf2569b2d3289a33386ff08e2aa7d30e546534ac
Signed-off-by: jianghaozhe <jhzgg2017@gmail.com>
1 file changed