Hook should be called from the temporary work directory

This commit is contained in:
Melon 2025-01-08 22:53:52 +00:00
parent eb36349ce5
commit 21a6b03da1
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -16,7 +16,7 @@ func New(hookDir string, sitesDir string) *Hook {
} }
func (h *Hook) Run(site, branch string) error { func (h *Hook) Run(site, branch string) error {
sitePath, err := securejoin.SecureJoin(h.sitesDir, site+"/@"+branch) sitePath, err := securejoin.SecureJoin(h.sitesDir, site+"/work@"+branch)
if err != nil { if err != nil {
return err return err
} }