ref: c8dd7d3b44c93a664dddc0c4619d336c6e13d2a8
dir: /repository/refs_timeout.go/
package repository
import (
"time"
"codeberg.org/lindenii/furgit/config"
)
func detectPackedRefsTimeout(cfg *config.Config) time.Duration {
timeoutValue, err := cfg.Lookup("core", "", "packedrefstimeout").Int()
if err != nil {
return time.Second
}
return time.Duration(timeoutValue) * time.Millisecond
}