SCRIPT_TYPE "bash" is not on the current PATH #9301

Closed
opened 2025-11-02 08:34:40 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @jarvis0325 on GitHub (Aug 1, 2022).

Description

v1.16.7 > v1.17.0

2022/08/01 10:35:05 ...etting/repository.go:289:newRepository() [W] SCRIPT_TYPE "bash" is not on the current PATH. Are you sure that this is the correct SCRIPT_TYPE?

How to fix this warring ?

Gitea Version

v1.17.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

img

Git Version

git version 2.34.1.windows.1

Operating System

windows

How are you running Gitea?

exe gitea.exe

Database

PostgreSQL

Originally created by @jarvis0325 on GitHub (Aug 1, 2022). ### Description v1.16.7 > v1.17.0 2022/08/01 10:35:05 ...etting/repository.go:289:newRepository() [W] SCRIPT_TYPE "bash" is not on the current PATH. Are you sure that this is the correct SCRIPT_TYPE? How to fix this warring ? ### Gitea Version v1.17.0 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![img](https://user-images.githubusercontent.com/8055266/182061899-9ac78987-1c91-4fbb-b970-1dfe3b11c9c8.jpg) ### Git Version git version 2.34.1.windows.1 ### Operating System windows ### How are you running Gitea? exe gitea.exe ### Database PostgreSQL
GiteaMirror added the type/question label 2025-11-02 08:34:40 -06:00
Author
Owner

@eeyrjmr commented on GitHub (Aug 1, 2022):

I can confirm this. Unsure if this is just a warning or related to a slowdown in startup noticed (windows only)

@eeyrjmr commented on GitHub (Aug 1, 2022): I can confirm this. Unsure if this is just a warning or related to a slowdown in startup noticed (windows only)
Author
Owner

@eeyrjmr commented on GitHub (Aug 1, 2022):

Running doctor shows:

[7] Check if SCRIPT_TYPE is available

  • [C] ScriptType ""bash"" is not on the current PATH. Error: exec: "bash": executable file not found in %PATH%
    ERROR

So I think this is the issue. Adding C:\Program Files\Git\bin\bash.exe to %PATH% makes this go away and doctor reports all is ok

@eeyrjmr commented on GitHub (Aug 1, 2022): Running doctor shows: [7] Check if SCRIPT_TYPE is available - [C] ScriptType ""bash"" is not on the current PATH. Error: exec: "bash": executable file not found in %PATH% ERROR So I think this is the issue. Adding C:\Program Files\Git\bin\bash.exe to %PATH% makes this go away and doctor reports all is ok
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9301