Skip to content

Commit f345b4c

Browse files
wxiaoguangzeripath
andauthored
Apply suggestions from code review
Co-authored-by: zeripath <[email protected]>
1 parent 780e858 commit f345b4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func VersionInfo() string {
128128

129129
func checkInit() error {
130130
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")
132132
}
133133
if DefaultContext != nil {
134134
log.Warn("git module has been initialized already, duplicate init should be fixed")
@@ -142,7 +142,7 @@ func HomeDir() string {
142142
// strict check, make sure the git module is initialized correctly.
143143
// attention: when the git module is called in gitea sub-command (serv/hook), the log module is not able to show messages to users.
144144
// 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")
146146
return ""
147147
}
148148
return setting.Git.HomePath

0 commit comments

Comments
 (0)