Repository: incubator-geode
Updated Branches:
  refs/heads/develop ab25e41c6 -> e97d74654


Looking for git repository starting from the project directory

The git revision stored in gemfire.properties was being discovered by
starting from the current working directory where gradle was launched.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/e97d7465
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/e97d7465
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/e97d7465

Branch: refs/heads/develop
Commit: e97d74654f1f667f3000b68e91737b8095e135dd
Parents: ab25e41
Author: Dan Smith <[email protected]>
Authored: Thu Feb 4 15:08:52 2016 -0800
Committer: Dan Smith <[email protected]>
Committed: Thu Feb 4 15:11:21 2016 -0800

----------------------------------------------------------------------
 gemfire-core/build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/e97d7465/gemfire-core/build.gradle
----------------------------------------------------------------------
diff --git a/gemfire-core/build.gradle b/gemfire-core/build.gradle
index 85e6fa6..d1a3854 100755
--- a/gemfire-core/build.gradle
+++ b/gemfire-core/build.gradle
@@ -122,7 +122,7 @@ task createVersionPropertiesFile {
   doLast {
 
     try {
-      def grgit = org.ajoberstar.grgit.Grgit.open()
+      def grgit = org.ajoberstar.grgit.Grgit.open(currentDir: projectDir)
       ext.branch = grgit.branch.getCurrent().name
       ext.commitId = grgit.head().id
       ext.sourceDate = grgit.head().getDate().format('yyyy-MM-dd HH:mm:ss Z')

Reply via email to