Browse Source

HADOOP-4738. When using git, the saveVersion script will use only the
commit hash for the version and not the message, which requires escaping.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@723479 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 16 years ago
parent
commit
f733761a38
2 changed files with 5 additions and 1 deletions
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/saveVersion.sh

+ 4 - 0
CHANGES.txt

@@ -264,6 +264,10 @@ main source files. (pete wyckoff via mahadev)
 
     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

+ 1 - 1
src/saveVersion.sh

@@ -24,7 +24,7 @@ version=$1
 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"