From fdde87d8228494aac1e4c50cc7315344639f8096 Mon Sep 17 00:00:00 2001 From: Robi Nino Date: Sun, 27 Mar 2022 10:25:40 +0300 Subject: [PATCH] Remove warning about missing branch (#632) --- .../build/extractor/clientConfiguration/util/GitUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/util/GitUtils.java b/build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/util/GitUtils.java index a0d1165b0..bd894f1f3 100644 --- a/build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/util/GitUtils.java +++ b/build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/util/GitUtils.java @@ -188,7 +188,7 @@ private static String extractVcsBranch(File dotGit, Log log) throws IOException String[] splitArr = revisionOrRef.ref.split("/"); return splitArr[splitArr.length - 1]; } - log.warn("Failed fetching git branch from git directory: " + dotGit); + log.debug("Failed fetching git branch from git directory: " + dotGit + ". Might be in detached head."); return ""; }