mirror of
https://github.com/1f349/site-hosting.git
synced 2025-01-21 06:36:33 +00:00
Hook should be called from the temporary work directory
This commit is contained in:
parent
eb36349ce5
commit
21a6b03da1
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user