File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ func VersionInfo() string {
128
128
129
129
func checkInit () error {
130
130
if setting .Git .HomePath == "" {
131
- return errors .New ("can not init Git's HomeDir, the setting and git modules are not initialized correctly " )
131
+ return errors .New ("unable to init Git's HomeDir, incorrect initialization of the setting and git modules" )
132
132
}
133
133
if DefaultContext != nil {
134
134
log .Warn ("git module has been initialized already, duplicate init should be fixed" )
@@ -142,7 +142,7 @@ func HomeDir() string {
142
142
// strict check, make sure the git module is initialized correctly.
143
143
// attention: when the git module is called in gitea sub-command (serv/hook), the log module is not able to show messages to users.
144
144
// for example: if there is gitea git hook code calling git.NewCommand before git.InitXxx, the integration test won't show the real failure reasons.
145
- log .Fatal ("can not get Git's HomeDir, the setting and git modules are not initialized correctly " )
145
+ log .Fatal ("Unable to init Git's HomeDir, incorrect initialization of the setting and git modules" )
146
146
return ""
147
147
}
148
148
return setting .Git .HomePath
You can’t perform that action at this time.
0 commit comments