SCRIPT_TYPE setting is not working #115

Closed
opened 2025-11-02 03:09:37 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @gdudas on GitHub (Dec 8, 2016).

  • Gitea version (or commit ref): 0.9.99.0915
  • Git version: 2.4.11
  • Operating system: Linux amd64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Log gist:

Description

When there is no bash on the system, git push gives an error, even if SCRIPT_TYPE is set to sh.

remote: env: can't execute 'bash': No such file or directory
remote: error: hook declined to update refs/heads/master

Originally created by @gdudas on GitHub (Dec 8, 2016). - Gitea version (or commit ref): 0.9.99.0915 - Git version: 2.4.11 - Operating system: Linux amd64 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [x] SQLite - Log gist: ## Description When there is no bash on the system, git push gives an error, even if SCRIPT_TYPE is set to sh. remote: env: can't execute 'bash': No such file or directory remote: error: hook declined to update refs/heads/master
GiteaMirror added the issue/not-a-bug label 2025-11-02 03:09:37 -06:00
Author
Owner

@bkcsoft commented on GitHub (Dec 8, 2016):

I think you need to run Rewrite all update hook of repositories (needed when custom config path is changed) in the admin-panel under Dashboard :)

@bkcsoft commented on GitHub (Dec 8, 2016): I think you need to run `Rewrite all update hook of repositories (needed when custom config path is changed)` in the admin-panel under Dashboard :)
Author
Owner

@tboerger commented on GitHub (Dec 8, 2016):

Exactly like @bkcsoft said, you need to rewrite the hooks via admin ui

@tboerger commented on GitHub (Dec 8, 2016): Exactly like @bkcsoft said, you need to rewrite the hooks via admin ui
Author
Owner

@tboerger commented on GitHub (Dec 8, 2016):

If you got further questions to that feel free to join our gitter chat

@tboerger commented on GitHub (Dec 8, 2016): If you got further questions to that feel free to join our gitter chat
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#115