Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] .github/workflows/cycles.yml: fix git command detection
@ 2022-04-26 19:32 classabbyamp
  2022-04-26 19:33 ` [PR PATCH] [Merged]: " Chocimier
  0 siblings, 1 reply; 2+ messages in thread
From: classabbyamp @ 2022-04-26 19:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

There is a new pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages ci-fix
https://github.com/void-linux/void-packages/pull/36875

.github/workflows/cycles.yml: fix git command detection
None

A patch file from https://github.com/void-linux/void-packages/pull/36875.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ci-fix-36875.patch --]
[-- Type: text/x-diff, Size: 1179 bytes --]

From 8a3fc093ddb575b2016ad0faf4d884cde0bcce59 Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@placeviolette.net>
Date: Tue, 26 Apr 2022 15:31:22 -0400
Subject: [PATCH] .github/workflows/cycles.yml: fix git command detection

---
 .github/workflows/cycles.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/cycles.yml b/.github/workflows/cycles.yml
index 72c8d83b2c82..d57976cbeed2 100644
--- a/.github/workflows/cycles.yml
+++ b/.github/workflows/cycles.yml
@@ -28,7 +28,13 @@ jobs:
          common/travis/prepare.sh
       - name: Find cycles and open issues
         run: |
-         git config --global --add safe.directory "$PWD"
+         if command -v chroot-git >/dev/null 2>&1; then
+             GIT_CMD=$(command -v chroot-git)
+         elif command -v git >/dev/null 2>&1; then
+            GIT_CMD=$(command -v git)
+         fi
+         # required by git 2.35.2+
+         $GIT_CMD config --global --add safe.directory "$PWD"
          common/scripts/xbps-cycles.py | tee cycles
          grep 'Cycle:' cycles | while read -r line; do
              if gh issue list -R "$GITHUB_REPOSITORY" -S "$line" | grep .; then

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: .github/workflows/cycles.yml: fix git command detection
  2022-04-26 19:32 [PR PATCH] .github/workflows/cycles.yml: fix git command detection classabbyamp
@ 2022-04-26 19:33 ` Chocimier
  0 siblings, 0 replies; 2+ messages in thread
From: Chocimier @ 2022-04-26 19:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

There's a merged pull request on the void-packages repository

.github/workflows/cycles.yml: fix git command detection
https://github.com/void-linux/void-packages/pull/36875

Description:
None

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-26 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 19:32 [PR PATCH] .github/workflows/cycles.yml: fix git command detection classabbyamp
2022-04-26 19:33 ` [PR PATCH] [Merged]: " Chocimier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).