hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1136220 - in /hadoop/common/trunk/common: CHANGES.txt src/saveVersion.sh
Date Wed, 15 Jun 2011 22:16:36 GMT
Author: atm
Date: Wed Jun 15 22:16:36 2011
New Revision: 1136220

URL: http://svn.apache.org/viewvc?rev=1136220&view=rev
Log:
HADOOP-7390. VersionInfo not generated properly in git after unsplit. (todd via atm)

Modified:
    hadoop/common/trunk/common/CHANGES.txt
    hadoop/common/trunk/common/src/saveVersion.sh

Modified: hadoop/common/trunk/common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/common/CHANGES.txt?rev=1136220&r1=1136219&r2=1136220&view=diff
==============================================================================
--- hadoop/common/trunk/common/CHANGES.txt (original)
+++ hadoop/common/trunk/common/CHANGES.txt Wed Jun 15 22:16:36 2011
@@ -309,6 +309,9 @@ Trunk (unreleased changes)
     HADOOP-7389. Use of TestingGroups by tests causes subsequent tests to fail.
     (atm via tomwhite)
 
+    HADOOP-7390. VersionInfo not generated properly in git after unsplit. (todd
+    via atm)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/common/src/saveVersion.sh
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/common/src/saveVersion.sh?rev=1136220&r1=1136219&r2=1136220&view=diff
==============================================================================
--- hadoop/common/trunk/common/src/saveVersion.sh (original)
+++ hadoop/common/trunk/common/src/saveVersion.sh Wed Jun 15 22:16:36 2011
@@ -26,7 +26,7 @@ build_dir=$2
 user=`whoami | tr '\n\r' '\n'`
 date=`date`
 cwd=`pwd`
-if [ -d .git ]; then
+if git rev-parse HEAD 2>/dev/null > /dev/null ; then
   revision=`git log -1 --pretty=format:"%H"`
   hostname=`hostname`
   branch=`git branch | sed -n -e 's/^* //p'`



Mime
View raw message