checkout icon indicating copy to clipboard operation
checkout copied to clipboard

The process '/usr/bin/git' failed with exit code 1

Open agluszak opened this issue 1 year ago • 11 comments

For some reason git started failing on checkout after I enabled auto-commiting changes made by prettier

Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/update/jsoniter-scala-core-2.23.0*:refs/remotes/origin/update/jsoniter-scala-core-2.23.0* +refs/tags/update/jsoniter-scala-core-2.23.0*:refs/tags/update/jsoniter-scala-core-2.23.0*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 20 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/update/jsoniter-scala-core-2.23.0*:refs/remotes/origin/update/jsoniter-scala-core-2.23.0* +refs/tags/update/jsoniter-scala-core-2.23.0*:refs/tags/update/jsoniter-scala-core-2.23.0*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 15 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/update/jsoniter-scala-core-2.23.0*:refs/remotes/origin/update/jsoniter-scala-core-2.23.0* +refs/tags/update/jsoniter-scala-core-2.23.0*:refs/tags/update/jsoniter-scala-core-2.23.0*

See: https://github.com/build-server-protocol/build-server-protocol/actions/runs/5003971723/jobs/8966282180#step:2:129

agluszak avatar May 17 '23 14:05 agluszak

I have same issue.

qxmips avatar Jun 07 '23 07:06 qxmips

Same :(

cwg50805 avatar Sep 27 '23 10:09 cwg50805

I have same issue too !

guychienll avatar Sep 27 '23 10:09 guychienll

BUMP: we are seeing the same issue in our actions runner now

ArjunDandagi avatar Sep 28 '23 09:09 ArjunDandagi

Same

polytopes-design avatar Feb 02 '24 09:02 polytopes-design

same here :(

haooliveira84 avatar Mar 27 '24 19:03 haooliveira84

Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/v2.000-dev*:refs/remotes/origin/v2.000-dev* +refs/tags/v2.000-dev*:refs/tags/v2.000-dev*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 20 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/v2.000-dev*:refs/remotes/origin/v2.000-dev* +refs/tags/v2.000-dev*:refs/tags/v2.000-dev*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 14 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/v2.000-dev*:refs/remotes/origin/v2.000-dev* +refs/tags/v2.000-dev*:refs/tags/v2.000-dev*
  ##[debug]Unsetting HOME override
  ::remove-matcher owner=checkout-git::
  ##[debug]Removed matchers: 'checkout-git'
  Error: The process '/usr/bin/git' failed with exit code 1
  ##[debug]Node Action run completed with exit code 1

The same error after dozens of re-runs.

Usage:

      - uses: actions/checkout@v4
        with:
          path: Include/EA31337-strategies
          ref: v2.000-dev
          repository: EA31337/EA31337-strategies
          submodules: recursive

I've tested actions/checkout@v3, didn't work either (same error).

It's possible that I'm cloning git repository on top of another cloned repository and there is some kind of confusion?


Update: I've refactored my actions by moving checkout of each repo into separate jobs then upload source code files as artifact, then download it from another one. This workaround worked for me.

kenorb avatar Apr 20 '24 12:04 kenorb

Same error and symptom for us. We are running with self-hosted runner. I tried to run the same command as the runner would and with export GIT_TRACE=1

[...]
09:45:10.394902 run-command.c:654       trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/REDACTED
09:45:10.395717 git.c:745               trace: exec: git-remote-https origin https://github.com/REDACTED
09:45:10.395736 run-command.c:654       trace: run_command: git-remote-https origin https://github.com/REDACTED
Username for 'https://github.com': foo
Password for 'https://[email protected]': 
09:45:22.693484 run-command.c:654       trace: run_command: git maintenance run --auto --no-quiet
09:45:22.694565 git.c:458               trace: built-in: git maintenance run --auto --no-quiet

$ echo $? 
1 

hieutomra avatar Apr 23 '24 10:04 hieutomra

I'm also having this issue. The ref is a tag and it works on some tags, but not on others.

ElRojo avatar Apr 23 '24 17:04 ElRojo