mirror of https://git.jolheiser.com/ugit.git
parent
590777dea0
commit
00b0d91307
|
@ -160,6 +160,7 @@ func requiredFS(repoDir string) error {
|
||||||
fi.WriteString("#!/usr/bin/env bash\n")
|
fi.WriteString("#!/usr/bin/env bash\n")
|
||||||
fi.WriteString(fmt.Sprintf("%s pre-receive-hook\n", bin))
|
fi.WriteString(fmt.Sprintf("%s pre-receive-hook\n", bin))
|
||||||
fi.WriteString(fmt.Sprintf(`for hook in %s.d/*; do
|
fi.WriteString(fmt.Sprintf(`for hook in %s.d/*; do
|
||||||
|
test -x "${hook}" && test -f "${hook}" || continue
|
||||||
"${hook}"
|
"${hook}"
|
||||||
done`, fp))
|
done`, fp))
|
||||||
fi.Close()
|
fi.Close()
|
||||||
|
|
Loading…
Reference in New Issue