Skip to content

Commit 0310fb8

Browse files
committed
fix
1 parent df4483e commit 0310fb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/git/git.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,10 @@ func InitFull(ctx context.Context) (err error) {
223223

224224
// RemoteNotExistPrefix returns the prefix of the error message when a remote does not exist.
225225
// see: https://github.com/go-gitea/gitea/issues/32889#issuecomment-2571848216
226+
// Should not add sapce in the end, sometimes git will add a `:`.
226227
func RemoteNotExistPrefix() string {
227228
if DefaultFeatures().NewExitStatusForRemoteNotExist {
228-
return "exit status 2 - error: No such remote "
229+
return "exit status 2 - error: No such remote"
229230
}
230-
return "exit status 128 - fatal: No such remote "
231+
return "exit status 128 - fatal: No such remote"
231232
}

0 commit comments

Comments
 (0)