Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable lfs fetch when using a fetch filter #1795

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sylr
Copy link

@sylr sylr commented Jun 25, 2024

Refers to #1152 (comment)

The Fetching LFS objects step fails when doing a "manual" treeless or blobless "checkout".

Run actions/checkout@v4
  with:
    filter: blob:none
    fetch-depth: 0
    lfs: true
    repository: company-com/myproject
    token: ***
    ssh-strict: true
    ssh-user: git
    persist-credentials: true
    clean: true
    sparse-checkout-cone-mode: true
    fetch-tags: false
    show-progress: true
    submodules: false
    set-safe-directory: true
Syncing repository: company-com/myproject
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/e654cc30-b5f1-4c0c-9d1e-69d2d9119211' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/myproject/myproject
Deleting the contents of '/home/runner/work/myproject/myproject'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
/usr/bin/git lfs install --local
Updated Git hooks.
Git LFS initialized.
Fetching the repository
Determining the checkout info
Fetching LFS objects
  /usr/bin/git lfs fetch origin refs/remotes/pull/22/merge
  fetch: Fetching reference refs/remotes/pull/22/merge
  Could not scan for Git LFS files
  
  Errors logged to '/home/runner/work/myproject/myproject/.git/lfs/logs/20240625T135006.343299849.log'.
  Use `git lfs logs last` to view the log.
  The process '/usr/bin/git' failed with exit code 2
  Waiting 10 seconds before trying again
  /usr/bin/git lfs fetch origin refs/remotes/pull/22/merge
  fetch: Fetching reference refs/remotes/pull/22/merge
  Could not scan for Git LFS files
  
  Errors logged to '/home/runner/work/myproject/myproject/.git/lfs/logs/20240625T135016.59069056.log'.
  Use `git lfs logs last` to view the log.
  The process '/usr/bin/git' failed with exit code 2
  Waiting 20 seconds before trying again
  /usr/bin/git lfs fetch origin refs/remotes/pull/22/merge
  fetch: Fetching reference refs/remotes/pull/22/merge
  Could not scan for Git LFS files
  
  Errors logged to '/home/runner/work/myproject/myproject/.git/lfs/logs/20240625T135036.863695316.log'.
  Use `git lfs logs last` to view the log.
  Error: The process '/usr/bin/git' failed with exit code 2

@sylr sylr requested a review from a team as a code owner June 25, 2024 14:17
@sylr
Copy link
Author

sylr commented Jul 8, 2024

Hi @cory-miller, could you review this please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant