gitsrht-shell: close database before exec

This commit is contained in:
Drew DeVault 2024-01-17 10:47:07 +01:00
parent 26809b6b5b
commit f39c67ced8
1 changed files with 1 additions and 0 deletions

View File

@ -424,6 +424,7 @@ func main() {
if err != nil {
logger.Fatalf("exec.LookPath: %v", err)
}
db.Close()
if err := syscall.Exec(bin, cmd, append(os.Environ(), fmt.Sprintf(
"SRHT_PUSH_CTX=%s", string(pushContext)))); err != nil {