@@ -4,11 +4,11 @@ import (
44 "bufio"
55 "errors"
66 "fmt"
7- config "github.com/remotemobprogramming/mob/v4 /configuration"
8- "github.com/remotemobprogramming/mob/v4 /goal"
9- "github.com/remotemobprogramming/mob/v4 /help"
10- "github.com/remotemobprogramming/mob/v4 /open"
11- "github.com/remotemobprogramming/mob/v4 /say"
7+ config "github.com/remotemobprogramming/mob/v5 /configuration"
8+ "github.com/remotemobprogramming/mob/v5 /goal"
9+ "github.com/remotemobprogramming/mob/v5 /help"
10+ "github.com/remotemobprogramming/mob/v5 /open"
11+ "github.com/remotemobprogramming/mob/v5 /say"
1212 "os"
1313 "os/exec"
1414 "path/filepath"
@@ -21,7 +21,7 @@ import (
2121)
2222
2323const (
24- versionNumber = "5.0.0 "
24+ versionNumber = "5.0.1 "
2525 minimumGitVersion = "2.13.0"
2626)
2727
@@ -755,11 +755,10 @@ func startNewMobSession(configuration config.Configuration) {
755755
756756func gitPushArgs (c config.Configuration ) []string {
757757 pushArgs := []string {"push" }
758- if c .SkipCiPushOptionEnabled {
758+ if ! c .SkipCiPushOptionEnabled {
759759 return pushArgs
760- } else {
761- return append (pushArgs , "--push-option" , "ci.skip" )
762760 }
761+ return append (pushArgs , "--push-option" , "ci.skip" )
763762}
764763
765764func getUntrackedFiles () string {
@@ -1153,9 +1152,14 @@ func git(args ...string) {
11531152 if ! isGit () {
11541153 say .Error ("expecting the current working directory to be a git repository." )
11551154 } else {
1156- say .Error (commandString )
1157- say .Error (output )
1158- say .Error (err .Error ())
1155+ if strings .Contains (output , "does not support push options" ) {
1156+ say .Error ("The receiving end does not support push options" )
1157+ say .Fix ("Disable the push option ci.skip in your .mob file or set the expected environment variable" , "export MOB_SKIP_CI_PUSH_OPTION_ENABLED=false" )
1158+ } else {
1159+ say .Error (commandString )
1160+ say .Error (output )
1161+ say .Error (err .Error ())
1162+ }
11591163 }
11601164 Exit (1 )
11611165 }
0 commit comments