zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arshadmohammad <...@git.apache.org>
Subject [GitHub] zookeeper pull request #137: ZOOKEEPER-2573: Modify Info.REVISION to adapt g...
Date Mon, 23 Jan 2017 03:26:09 GMT
Github user arshadmohammad commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/137#discussion_r97247778
  
    --- Diff: src/lastRevision.bat ---
    @@ -16,8 +16,9 @@ rem See the License for the specific language governing permissions
and
     rem limitations under the License.
     
     rem Find the current revision, store it in a file, for DOS
    -svn info | findstr Revision > %1
    +git rev-parse HEAD > %1
     
    -For /F "tokens=1,2 delims= " %%a In (%1) Do (
    -	echo lastRevision=%%b> %1
    +For /F "tokens=* delims= " %%a In (%1) Do (
    --- End diff --
    
    This is not working. May be you can replace with all the script with following script:
    for /f "delims=" %%i in ('git rev-parse HEAD') do set rev=%%i
    echo lastRevision=%rev% > %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.
---

Mime
View raw message