We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4483e commit 0310fb8Copy full SHA for 0310fb8
modules/git/git.go
@@ -223,9 +223,10 @@ func InitFull(ctx context.Context) (err error) {
223
224
// RemoteNotExistPrefix returns the prefix of the error message when a remote does not exist.
225
// see: https://github.com/go-gitea/gitea/issues/32889#issuecomment-2571848216
226
+// Should not add sapce in the end, sometimes git will add a `:`.
227
func RemoteNotExistPrefix() string {
228
if DefaultFeatures().NewExitStatusForRemoteNotExist {
- return "exit status 2 - error: No such remote "
229
+ return "exit status 2 - error: No such remote"
230
}
- return "exit status 128 - fatal: No such remote "
231
+ return "exit status 128 - fatal: No such remote"
232
0 commit comments