-
-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Description
Hi,
I was trying your github action for a personnal project and end up with that stack trace
Run stefanzweifel/git-auto-commit-action@v2.0.0
/usr/bin/docker run --name bb812c55c43200fd4a7694090566760cb690_af6ffa --label 04bb81 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_COMMIT_AUTHOR_EMAIL -e INPUT_COMMIT_AUTHOR_NAME -e INPUT_COMMIT_MESSAGE -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/git-action-playground-v2/git-action-playground-v2":"/github/workspace" 04bb81:2c55c43200fd4a7694090566760cb690
Checking for uncommitted changes in the git working tree.
error: pathspec '2/merge' did not match any file(s) known to git
##[error]Docker run failed with exit code 1
I searched a bit for this error, and it seems that maybe git does not know the branch i'm trying to checkout (https://stackoverflow.com/questions/5989592/git-cannot-checkout-branch-error-pathspec-did-not-match-any-files-kn)
I think the trick is maybe to add git fetch to your entrypoint.sh to be sure git know all the branches
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels