-
Notifications
You must be signed in to change notification settings - Fork 406
error: cannot spawn sh: No such file or directory fatal: unable to fork #1626

Description
@lkdvc commented on Aug 2, 2018, 10:05 AM UTC:
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
First, I know this error already has been reported. But I think mine is a bit different and I also think I know the source.
So... I have a bare repo on an windows network drive (git bash (git init –bare)) which I’ve cloned to my desktop.
The clone is my project in which I’m working from atom and in which I’m committing my changes.
When I want to push something to the bare repo (windows network drive) I’m doing this with GitHub Desktop, which works just fine.
But if I try to push with atom (From the bottom right corner “Push” icon (or button), beside the “files” icon (or button)) I get the following error:
error: cannot spawn sh: No such file or directory fatal: unable to fork
Steps to Reproduce
- Create a bare repo on a external device/network (git init --bare)
- Clone it to your local storage
- Commit something in the clone
- Try to push from the clone (opened project) into the bare repo via Atom
Expected behavior: Push to bare repo
Actual behavior: Error: error: cannot spawn sh: No such file or directory fatal: unable to fork
Reproduces how often: 100%
Versions
Atom : 1.29.0 (I have this problem for a long time now, it also happened in older versions)
Electron: 2.0.5
Chrome : 61.0.3163.100
Node : 8.9.3
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.29.0
python
git 2.18.0.windows.1
visual studio 2015
Additional Information
Community Packages (27)
├── atom-beautify@0.32.5
├── atom-clock@0.1.16
├── busy-signal@1.4.3
├── color-picker@2.3.0
├── file-icons@2.1.22
├── highlight-selected@0.14.0
├── Hydrogen@2.5.1
├── intentions@1.1.5
├── linter@2.2.0
├── linter-csslint@2.0.1
├── linter-htmlhint@1.4.0
├── linter-jshint@3.1.8
├── linter-php@1.5.1
├── linter-sass-lint@1.8.3
├── linter-ui-default@1.7.1
├── minimap@4.29.8
├── minimap-bookmarks@0.4.2
├── minimap-cursorline@0.2.0
├── minimap-find-and-replace@4.5.2
├── minimap-git-diff@4.3.1
├── minimap-highlight-selected@4.6.1
├── minimap-linter@2.1.3
├── minimap-selection@4.5.0
├── pigments@0.40.2
├── platformio-ide-terminal@2.8.3
├── sort-lines@0.18.0
└── teletype@0.13.3
Built-in Atom Packages (92)
├── atom-dark-syntax@0.29.0
├── atom-dark-ui@0.53.2
├── atom-light-syntax@0.29.0
├── atom-light-ui@0.46.2
├── base16-tomorrow-dark-theme@1.5.0
├── base16-tomorrow-light-theme@1.5.0
├── one-dark-ui@1.12.3
├── one-light-ui@1.12.3
├── one-dark-syntax@1.8.3
├── one-light-syntax@1.8.3
├── solarized-dark-syntax@1.1.5
├── solarized-light-syntax@1.1.5
├── about@1.9.1
├── archive-view@0.65.1
├── autocomplete-atom-api@0.10.7
├── autocomplete-css@0.17.5
├── autocomplete-html@0.8.4
├── autocomplete-plus@2.40.6
├── autocomplete-snippets@1.12.0
├── autoflow@0.29.4
├── autosave@0.24.6
├── background-tips@0.28.0
├── bookmarks@0.45.1
├── bracket-matcher@0.89.2
├── command-palette@0.43.5
├── dalek@0.2.2
├── deprecation-cop@0.56.9
├── dev-live-reload@0.48.1
├── encoding-selector@0.23.9
├── exception-reporting@0.43.1
├── find-and-replace@0.215.12
├── fuzzy-finder@1.8.2
├── github@0.17.3
├── git-diff@1.3.9
├── go-to-line@0.33.0
├── grammar-selector@0.50.1
├── image-view@0.62.4
├── incompatible-packages@0.27.3
├── keybinding-resolver@0.38.1
├── line-ending-selector@0.7.7
├── link@0.31.4
├── markdown-preview@0.159.20
├── metrics@1.2.8
├── notifications@0.70.5
├── open-on-github@1.3.1
├── package-generator@1.3.0
├── settings-view@0.255.0
├── snippets@1.3.3
├── spell-check@0.73.5
├── status-bar@1.8.15
├── styleguide@0.49.11
├── symbols-view@0.118.2
├── tabs@0.109.2
├── timecop@0.36.2
├── tree-view@0.222.0
├── update-package-dependencies@0.13.1
├── welcome@0.36.6
├── whitespace@0.37.6
├── wrap-guide@0.40.3
├── language-c@0.59.10
├── language-clojure@0.22.7
├── language-coffee-script@0.49.3
├── language-csharp@1.0.4
├── language-css@0.42.11
├── language-gfm@0.90.5
├── language-git@0.19.1
├── language-go@0.45.4
├── language-html@0.50.1
├── language-hyperlink@0.16.3
├── language-java@0.30.0
├── language-javascript@0.128.8
├── language-json@0.19.2
├── language-less@0.34.2
├── language-make@0.22.3
├── language-mustache@0.14.5
├── language-objective-c@0.15.1
├── language-perl@0.38.1
├── language-php@0.44.0
├── language-property-list@0.9.1
├── language-python@0.50.1
├── language-ruby@0.71.4
├── language-ruby-on-rails@0.25.3
├── language-sass@0.62.0
├── language-shellscript@0.26.6
├── language-source@0.9.0
├── language-sql@0.25.10
├── language-text@0.7.4
├── language-todo@0.29.4
├── language-toml@0.18.2
├── language-typescript@0.3.4
├── language-xml@0.35.2
└── language-yaml@0.32.0
This issue was moved by rsese from atom/atom#17772.