charmbracelet / soft-serve

The mighty, self-hostable Git server for the command line🍦
MIT License
5.16k stars 127 forks source link

Git hooks (not a git repository) #523

Closed mohmadhabib closed 3 months ago

mohmadhabib commented 3 months ago

CI/CD Issue ScreenShot

I have got not a git repository in the attached above when i push the Code to a remote server (soft-serve)

and the code in the soft-serve/data/repos/<repo>/hooks/update.d/do is like attached below screenshot Update DO Script Screenshot

Expected behavior It is expected to run the git command i even tried bash -c 'git status' nothing changed

Extra Context if i have added to my updat.d code an git init it ignores the .git folder and make the directory as Bare repo with all folders and files in the main directory which is has .git folder

Environment:

mohmadhabib commented 3 months ago

I have figured out what I'm missing, I'm just using the wrong hook after all, post-receive was what I'm looking for