Skip to content

git lfs checkout fails on 4.1.1 #2110

Closed as not planned
Closed as not planned
@oharboe

Description

@oharboe

I'm getting the error below, which is strange. I would have thought actions/checkout would handle a git repository that already has lfs set up.

Image

      - uses: actions/checkout@v4.1.1
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          fetch-depth: 1
          lfs: true

Output:

/usr/bin/git lfs install --local
Hook already exists: pre-push

	#!/bin/bash
	
	protected_branch='master'
	
	if read local_ref local_sha remote_ref remote_sha; then

I had to add the below or some git lfs files were not checked out properly

      - name: git lfs pull
        run: git lfs pull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions