This is an automated email from the ASF dual-hosted git repository.
deepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9da954b6fc Fixed gitInfoFooter task, it fails to generate footer info,
I am getting Git is not used error on terminal on Mac
9da954b6fc is described below
commit 9da954b6fc34b9ae4689223a360dd4d147867732
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 7dc9ee4a22..5581ce5cae 100644
--- a/build.gradle
+++ b/build.gradle
@@ -739,7 +739,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")