This is an automated email from the ASF dual-hosted git repository.
deepak pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new 735ca90179 Fixed gitInfoFooter task, it fails to generate footer info,
I am getting Git is not used error on terminal on Mac
735ca90179 is described below
commit 735ca901792dcac28b1f6c9aeac2003ac1209ee3
Author: Deepak Dixit <[email protected]>
AuthorDate: Fri Dec 23 11:06:12 2022 +0530
Fixed gitInfoFooter task, it fails to generate footer info, I am getting
Git is not used error on terminal on Mac
---
build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index 90ad4b5bf9..fe6547a164 100644
--- a/build.gradle
+++ b/build.gradle
@@ -717,7 +717,7 @@ task gitInfoFooter(group: sysadminGroup, description:
'Update the Git Branch-rev
def branch
def revision
def timestamp = new Date().format 'yyyy-MM-dd HH:mm:ss'
- def gitFolder = new File('.git')
+ def gitFolder = rootProject.file('.git')
if (!gitFolder.exists()) {
println ("Git is not used")