mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #267] [MERGED] Pull latest changes from ref using cached repo #1398
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#1398
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/267
Author: @mheap
Created: 6/6/2020
Status: ✅ Merged
Merged: 6/9/2020
Merged by: @cplee
Base:
master← Head:master📝 Commits (3)
63c041ePull latest changes from ref using cached repo5456c83Extract CloneIfRequired to reduce cyclomatic complexity411f5c1Merge branch 'master' into master📊 Changes
1 file changed (+81 additions, -30 deletions)
View changed files
📝
pkg/common/git.go(+81 -30)📄 Description
Act switched from checking out a branch to checking out a hash in order to resolve #24 - see
bc5c23e8e4This had a side effect of preventing
w.Pull()from updating to the latest commit if a ref was a branch/tag and the repo already exists on disk.This commit checks if input.Ref is equivalent to the resolved hash, and runs
r.Fetch()and checks out the branch forinput.Refif it is different.w.Pull()can then pull the latest changes before we checkout*hashagain like normal🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.