diff --git a/cmd/joj3/conf.go b/cmd/joj3/conf.go index 13ebb4d..0556478 100644 --- a/cmd/joj3/conf.go +++ b/cmd/joj3/conf.go @@ -124,20 +124,6 @@ func commitMsgToConf() (conf Conf, err error) { head := words[0] var hw string - msg := commit.Message - slog.Debug("commit msg to conf", "msg", msg) - if msg == "" { - conf, err = parseConfFile(file) - return - } - - line := strings.Split(msg, "\n")[0] - - words := strings.Fields(line) - - head := words[0] - var hw string - if strings.HasSuffix(head, ":") || strings.HasSuffix(head, ".") { head = head[:len(head)-1] }