[GH-ISSUE #427] Checks out too much of the git repository #297

Closed
opened 2026-03-01 21:42:09 +03:00 by kerem · 1 comment
Owner

Originally created by @mosesn on GitHub (Nov 20, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/427

I was debugging a problem where we were seeing "unrelated file histories" on a github action. The root of the problem ended up being that we were using git fetch --depth=1 and should not have been specifying a depth. However, when I tried to reproduce the problem with nektos/act, I was unable to. Tbh why this failed is still somewhat mysterious to me, but it does seem to be a discrepancy between how github actions works and how nektos/act works.

This is the problematic line:

github.com/twitter/dodo@c89e28eb0d/.github/workflows/merge.yml (L23)

And here is the failing github action:
https://github.com/twitter/dodo/runs/1409487703?check_suite_focus=true#step:3:9

Originally created by @mosesn on GitHub (Nov 20, 2020). Original GitHub issue: https://github.com/nektos/act/issues/427 I was debugging a problem where we were seeing "unrelated file histories" on a github action. The root of the problem ended up being that we were using `git fetch --depth=1` and should not have been specifying a depth. However, when I tried to reproduce the problem with nektos/act, I was unable to. Tbh why this failed is still somewhat mysterious to me, but it does seem to be a discrepancy between how github actions works and how nektos/act works. This is the problematic line: https://github.com/twitter/dodo/blob/c89e28eb0dd67b083a36a5b8d2a37fadcdf0efdb/.github/workflows/merge.yml#L23 And here is the failing github action: https://github.com/twitter/dodo/runs/1409487703?check_suite_focus=true#step:3:9
kerem 2026-03-01 21:42:09 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:761279544 --> @github-actions[bot] commented on GitHub (Jan 16, 2021): Issue is stale and will be closed in 14 days unless there is new activity
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#297
No description provided.