Author: cdouglas
Date: Thu Dec 4 15:02:04 2008
New Revision: 723479
URL: http://svn.apache.org/viewvc?rev=723479&view=rev
Log:
HADOOP-4738. When using git, the saveVersion script will use only the
commit hash for the version and not the message, which requires escaping.
Modified:
hadoop/core/trunk/CHANGES.txt
hadoop/core/trunk/src/saveVersion.sh
Modified: hadoop/core/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=723479&r1=723478&r2=723479&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Dec 4 15:02:04 2008
@@ -264,6 +264,10 @@
HADOOP-4770. Fix rungridmix_2 script to work with RunJar. (cdouglas)
+ HADOOP-4738. When using git, the saveVersion script will use only the
+ commit hash for the version and not the message, which requires escaping.
+ (cdouglas)
+
Release 0.19.1 - Unreleased
IMPROVEMENTS
Modified: hadoop/core/trunk/src/saveVersion.sh
URL:
http://svn.apache.org/viewvc/hadoop/core/trunk/src/saveVersion.sh?rev=723479&r1=723478&r2=723479&view=diff
==============================================================================
--- hadoop/core/trunk/src/saveVersion.sh (original)
+++ hadoop/core/trunk/src/saveVersion.sh Thu Dec 4 15:02:04 2008
@@ -24,7 +24,7 @@
user=`whoami`
date=`date`
if [ -d .git ]; then
- revision=`git log -1 --pretty=oneline`
+ revision=`git log -1 --pretty=format:"%H"`
hostname=`hostname`
branch=`git branch | sed -n -e 's/^* //p'`
url="git://$hostname/$cwd on branch $branch"