~edwargix/git.sr.ht

3ae9618fe0f455fb7ce606893b4e4d1054fa1dcb — наб 4 years ago 4966a66
Also set srht.repo-id in gitsrht-shell for autocreated repositories

This mirrors gitsrht/repos.py, as it should have all along
1 files changed, 6 insertions(+), 1 deletions(-)

M gitsrht-shell/main.go
M gitsrht-shell/main.go => gitsrht-shell/main.go +6 -1
@@ 300,9 300,14 @@ func main() {
					notFound("git init", err)
				}
				if err = exec.Command("git", "-C", path, "config",
					"srht.repo-id", strconv.Itoa(repoId)).Run(); err != nil {

					notFound("git config srht.repo-id", err)
				}
				if err = exec.Command("git", "-C", path, "config",
					"receive.denyDeleteCurrent", "ignore").Run(); err != nil {

					notFound("git config", err)
					notFound("git config receive.denyDeleteCurrent", err)
				}
				if err = exec.Command("ln", "-s", postUpdate,
					gopath.Join(path, "hooks", "update")).Run(); err != nil {