From 8a3985f9bf398a732c724ed7795b9d6de5048af3 Mon Sep 17 00:00:00 2001 From: caobaoyu Date: Tue, 20 Aug 2024 11:20:21 +0800 Subject: [PATCH] feat: update Gitlab.java with change clone from private to public --- .../gitlab/src/main/java/com/xiaomi/youpin/gitlab/Gitlab.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcommon/gitlab/src/main/java/com/xiaomi/youpin/gitlab/Gitlab.java b/jcommon/gitlab/src/main/java/com/xiaomi/youpin/gitlab/Gitlab.java index 718043bc2..418d060bd 100644 --- a/jcommon/gitlab/src/main/java/com/xiaomi/youpin/gitlab/Gitlab.java +++ b/jcommon/gitlab/src/main/java/com/xiaomi/youpin/gitlab/Gitlab.java @@ -516,7 +516,7 @@ private static boolean modifyFile(String changedBody, String filePathToReplace, return true; } - private static boolean clone(String gitUrl, String branch, String username, String token, String gitPath) { + public static boolean clone(String gitUrl, String branch, String username, String token, String gitPath) { clearIfPresent(gitPath); CloneCommand cloneCommand = Git.cloneRepository().setURI(gitUrl) .setCredentialsProvider(new UsernamePasswordCredentialsProvider(username, token))