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

"git-sh-setup: file not found" during git submodule update #2420

Open
raphinesse opened this issue Jun 7, 2018 · 5 comments
Open

"git-sh-setup: file not found" during git submodule update #2420

raphinesse opened this issue Jun 7, 2018 · 5 comments

Comments

@raphinesse
Copy link

Command failed: C:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 19: .: git-sh-setup: file not found

Interesting enough, this only happens with environment.matrix.nodejs_version: "10". For node 6 and 8 this error does not occur. Here's a failing build for example.

@raphinesse
Copy link
Author

raphinesse commented Jun 7, 2018

This workaround fixes it for us:

test_script:
  # Workaround for https://github.com/appveyor/ci/issues/2420
  - set "PATH=%PATH%;C:\Program Files\Git\mingw64\libexec\git-core"
  - npm test

huan added a commit to wechaty/getting-started that referenced this issue Jul 19, 2018
@admosity
Copy link

Thanks @raphinesse for the workaround. This was happening on some local setups (in which case we just added that globally to our $PATH).

I have a feeling this may have to do with firing commands in a sub shell environment that may not have the same startup scripts.

@XhmikosR
Copy link
Contributor

Does this happen with 2.19.1 locally? I have #2683 for the update.

nornagon added a commit to electron/electron that referenced this issue Mar 5, 2019
deepak1556 pushed a commit to electron/electron that referenced this issue Mar 6, 2019
deepak1556 pushed a commit to electron/electron that referenced this issue Mar 7, 2019
MarshallOfSound pushed a commit to electron/electron that referenced this issue Mar 8, 2019
MarshallOfSound pushed a commit to electron/electron that referenced this issue Mar 8, 2019
kiku-jw pushed a commit to kiku-jw/electron that referenced this issue May 16, 2019
@liuyu666
Copy link

liuyu666 commented Feb 8, 2022

May be the reason for the terminal, try it with git-bash

1 similar comment
@liuyu666
Copy link

liuyu666 commented Feb 8, 2022

May be the reason for the terminal, try it with git-bash

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

No branches or pull requests

4 participants