From 3ae9618fe0f455fb7ce606893b4e4d1054fa1dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 30 Jul 2020 18:00:55 +0200 Subject: [PATCH] Also set srht.repo-id in gitsrht-shell for autocreated repositories This mirrors gitsrht/repos.py, as it should have all along --- gitsrht-shell/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gitsrht-shell/main.go b/gitsrht-shell/main.go index c29dc89..449c959 100644 --- a/gitsrht-shell/main.go +++ b/gitsrht-shell/main.go @@ -299,10 +299,15 @@ 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 { -- 2.38.4