Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-670

bootstrap scripts makes assumptions about the git log format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.11
    • Build System
    • None
    • scm: git, when .gitconfig alters the log format

    Description

      my .gitconfig uses sets up the log format like so:

      [format]
      pretty="format:%C(yellow)%h%Creset %C(magenta bold)%aN%Creset%C(blue) %ad%Creset %s"

      and the bootstrap script interprets a color code as the version number. instead, this patch will use an explicit format to get JUST the version number:

      diff --git a/bootstrap b/bootstrap
      index 8cfc2c0..aa4d9e7 100755
      — a/bootstrap
      +++ b/bootstrap
      @@ -33,7 +33,7 @@ mkdir -p build-aux

      if test -z "$REVISION"; then
      if test -d .git; then

      • REVISION=`git log | head -1 | awk ' {print $2}

        ' | cut -b 1-8`-git
        + REVISION=`git log --pretty="format:%h" | head -1`-git
        else

      1. default to svn
        REVISION=`\`which svn\` info . 2> /dev/null | awk "/Revision:/ {print \\$2}

        "`

      Attachments

        Activity

          People

            jan Jan Lehnardt
            mattly Matt Lyon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: