Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36696200BFE for ; Mon, 16 Jan 2017 12:44:42 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 32670160B30; Mon, 16 Jan 2017 11:44:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 725E1160B22 for ; Mon, 16 Jan 2017 12:44:41 +0100 (CET) Received: (qmail 11588 invoked by uid 500); 16 Jan 2017 11:44:40 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 11577 invoked by uid 99); 16 Jan 2017 11:44:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2017 11:44:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 21764DFBDC; Mon, 16 Jan 2017 11:44:40 +0000 (UTC) From: rakeshadr To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #137: ZOOKEEPER-2573: Modify Info.REVISION to adapt g... Content-Type: text/plain Message-Id: <20170116114440.21764DFBDC@git1-us-west.apache.org> Date: Mon, 16 Jan 2017 11:44:40 +0000 (UTC) archived-at: Mon, 16 Jan 2017 11:44:42 -0000 Github user rakeshadr commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/137#discussion_r96212537 --- Diff: src/lastRevision.sh --- @@ -16,6 +16,6 @@ # Find the current revision, store it in a file FILE=$1 -LASTREV=`svn info | grep '^Revision' | sed -e 's/Revision: *//'` +LASTREV=`git rev-parse HEAD | cut -c1-8` --- End diff -- Thanks @eribeiro for the patch. Any specific reason to use only the first 8 characters of the git SHA-1. Will this be helpful in analyzing whether a particular fix included in the release? How about keeping the complete SHA-1? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---