// there are a lot of CentOS/RHEL users using old git, so we add a special hint for them
// there are a lot of CentOS/RHEL users using old git, so we add a special hint for them
if_,err:=os.Stat("/etc/redhat-release");err==nil{
if_,err:=os.Stat("/etc/redhat-release");err==nil{
// ius.io is the recommended official(git-scm.com) method to install git
// ius.io is the recommended official(git-scm.com) method to install git
moreHint="get git: https://git-scm.com/download/linux and https://ius.io"
moreHint="get git: https://git-scm.com/downloads/linux and https://ius.io"
}
}
}
}
returnfmt.Errorf("installed git version %q is not supported, Gitea requires git version >= %q, %s",DefaultFeatures().gitVersion.Original(),RequiredVersion,moreHint)
returnfmt.Errorf("installed git version %q is not supported, Gitea requires git version >= %q, %s",DefaultFeatures().gitVersion.Original(),RequiredVersion,moreHint)