[前][次][番号順一覧][スレッド一覧]

ruby-changes:60057

From: Nobuyoshi <ko1@a...>
Date: Thu, 13 Feb 2020 15:23:36 +0900 (JST)
Subject: [ruby-changes:60057] 5eced3c030 (ruby_2_7): Checkout with git on cygwin for EOL code

https://git.ruby-lang.org/ruby.git/commit/?id=5eced3c030

From 5eced3c030f39d10e193c5e33a70365d8e011bb1 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 13 Jan 2020 10:02:04 +0900
Subject: Checkout with git on cygwin for EOL code

`shell: bash` runs bash on msys which prefers git on msys too,
then checked out in CRLF mode.  Cygwin sed doesn't consider the CR
a part of EOL code, though.

diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml
index b8360d4..a066b35 100644
--- a/.github/workflows/cygwin.yml
+++ b/.github/workflows/cygwin.yml
@@ -44,10 +44,10 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/cygwin.yml#L44
       # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
       - name: Checkout ruby
         run: |
-          git clone --single-branch --shallow-since=yesterday --branch=${GITHUB_REF#refs/heads/} https://github.com/${{ github.repository }} src
+          git clone --single-branch --shallow-since=yesterday --branch=%GITHUB_REF:refs/heads/=% https://github.com/${{ github.repository }} src
           git -C src reset --hard ${{ github.sha }}
         if: github.event_name == 'push'
-        shell: bash
+        shell: cmd
       - name: Checkout a pull request
         run: |
           git clone --single-branch --shallow-since=yesterday --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]