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

Cannot use Gogs in Termux environment (Android) #4853

Closed
2 of 7 tasks
KaMeHb-UA opened this issue Nov 3, 2017 · 3 comments
Closed
2 of 7 tasks

Cannot use Gogs in Termux environment (Android) #4853

KaMeHb-UA opened this issue Nov 3, 2017 · 3 comments
Labels
💊 bug Something isn't working 📦 deployment Related to deployments 🙇‍♂️ help wanted Need your help

Comments

@KaMeHb-UA
Copy link

  • Gogs version (or commit ref): 0.11.29.0727
  • Git version: 2.15.0
  • Operating system: Android 6.0 (Termux shell environment) [armhf(v7l), using armv5 binaries]
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gogs.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist (usually found in log/gogs.log)

Description

Seen an error 500 while creating repository (relevant to any user/repo):
An error has occurred : initRepository: initRepoCommit: git push: fatal: cannot run hooks/pre-receive: No such file or directory To /data/data/com.termux/files/home/gogs-repositories/kamehb-ua/unwatched.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '/data/data/com.termux/files/home/gogs-repositories/kamehb-ua/unwatched.git'

Screen above:

image

@unknwon unknwon added 🙇‍♂️ help wanted Need your help 💊 bug Something isn't working 📦 deployment Related to deployments labels Nov 19, 2017
@privateWH
Copy link

look at unwatched.git/hook/update
This is a server-side hook check. In side of the file it should be a gogs/gogs hook...
make sure /usr/bin/env and bash are working.

@privateWH
Copy link

privateWH commented Sep 15, 2018

Don't get confused with the hook pre-receive in the Git Hooks of gogs

https://[user server, e.g.:192.168.0.105:3000]/[username]/[repo]/settings/hooks/git/pre-receive
This thing doesn't seem to work as of 0.11.53

@KaMeHb-UA
Copy link
Author

look at unwatched.git/hook/update
This is a server-side hook check. In side of the file it should be a gogs/gogs hook...
make sure /usr/bin/env and bash are working.

Thanks, @weinianhe. Issue may be closed now

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working 📦 deployment Related to deployments 🙇‍♂️ help wanted Need your help
Projects
None yet
Development

No branches or pull requests

3 participants