mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #1530] [MERGED] Feature/allow worktrees #1988
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1988
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1530
Author: @lavigne958
Created: 12/20/2022
Status: ✅ Merged
Merged: 1/19/2023
Merged by: @mergify[bot]
Base:
master← Head:feature/allow_worktrees📝 Commits (4)
e85f0d4Use go-git to find remote URL3e97a20Use go-git package to resolve HEAD revision (commit sha1)73074b9Use go-git to find checked-out reference7a649a1Remove unused functions📊 Changes
2 files changed (+90 additions, -115 deletions)
View changed files
📝
pkg/common/git/git.go(+82 -114)📝
pkg/common/git/git_test.go(+8 -1)📄 Description
Handle cases where the user uses worktrees and not a regular git clone.
This PR uses some work previously done by @lvlrt and my contribution to make it work in any cases regardless of the type of worktrees.
this PR handle 2 cases:
.gitthat contains the path to the git data inside the regular git clone. usually under:/path/to/repo/.git/worktrees/worktre_name.gitthat contains the path to the git data directly. usually under:/path/to/repo/commondirThis work fine, I tried it using both worktree types (actually both git clone types) and this code was pushed using a worktree and I managed to run
acton it.closes #657
Uses commits from #829
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.