[PR #471] [MERGED] Fix "Unable to checkout" error #1459

Closed
opened 2026-03-01 21:51:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/471
Author: @lufia
Created: 1/14/2021
Status: Merged
Merged: 1/15/2021
Merged by: @cplee

Base: masterHead: fix-checkout


📝 Commits (1)

  • ab2eb7f Fix "reference not found" error on checkout (#433)

📊 Changes

4 files changed (+44 additions, -15 deletions)

View changed files

📝 go.mod (+1 -1)
📝 go.sum (+3 -0)
📝 pkg/common/git.go (+8 -14)
📝 pkg/common/git_test.go (+32 -0)

📄 Description

I've fixed "reference not found" error at #433.

However, in some case, it still occurs "Unable to checkout refs/heads/xx: reference not found" error on checkout. This pull request fixes that error.
ref https://github.com/nektos/act/pull/433#issuecomment-756392879

Note:

  • I added two references to the external repositories for testing. Are there ok?
  • Currently, refName is used only for logging. sourceRef could be able to unify sourceRef into refName.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/471 **Author:** [@lufia](https://github.com/lufia) **Created:** 1/14/2021 **Status:** ✅ Merged **Merged:** 1/15/2021 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `fix-checkout` --- ### 📝 Commits (1) - [`ab2eb7f`](https://github.com/nektos/act/commit/ab2eb7f931e1c2ce548f117107898d091b719805) Fix "reference not found" error on checkout (#433) ### 📊 Changes **4 files changed** (+44 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -1) 📝 `go.sum` (+3 -0) 📝 `pkg/common/git.go` (+8 -14) 📝 `pkg/common/git_test.go` (+32 -0) </details> ### 📄 Description I've fixed "reference not found" error at #433. However, in some case, it still occurs "Unable to checkout refs/heads/xx: reference not found" error on checkout. This pull request fixes that error. ref https://github.com/nektos/act/pull/433#issuecomment-756392879 Note: - I added two references to the external repositories for testing. Are there ok? - Currently, *refName* is used only for logging. *sourceRef* could be able to unify *sourceRef* into *refName*. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1459
No description provided.