Skip to content

Failed to run '/usr/bin/bash': Permission denied #2728

@lzuliuyun

Description

@lzuliuyun
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.27.0.windows.1
cpu: x86_64
built from commit: 907ab1011dce9112700498e034b974ba60f8b407
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [版本 10.0.18362.900]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path: 
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Rebase
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
*
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?
when I execute 'git pull' command in webstorm, I get error:
.git/hooks/husky.sh: line 47: /usr/bin/basename: Permission denied

execute 'git commit' command in webstorm, I get similar error:

.git/hooks/husky.sh: line 47: /usr/bin/basename: Permission denied .git/hooks/husky.sh: line 37: /usr/bin/grep: Permission denied
.git/hooks/husky.sh: line 58: /usr/bin/dirname: Permission denied .git/hooks/husky.sh: line 58: /husky.local.sh: No such file or directory

when I start git bash, I get error:
![image](https://user-images.githubusercontent.com/6896562/86309962-88190200-bc4f-11ea-8060-a47c28f06154.png)

sometimes, I try to execute 'git commit' more times, it will work

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

** Bash、 webstorm **

when I start git bash, I get the following error。
image

In webstorm
image

image

  • What did you expect to occur after running these commands?
    I expect when I execute git command, it do not give a permission message。 Actually,it work nice before, but i don't know why bash don't work rencently。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions