77
88func (env * runEnv ) updateGoDependency () {
99 env .runGitCommand ("Ensure origin/master is up to date" , "fetch" )
10- env .runGitCommand ("Sync with master" , "merge" , "-ff-only" , "origin/master" )
10+ env .runGitCommand ("Sync with master" , "merge" , "-- ff-only" , "origin/master" )
1111 dep := env .getUpdatedDep ()
1212 env .runCommand ("Update dependency" , "go" , "get" , dep )
1313 diffOutput := env .runCommandWithOutput ("check if there's a change" , "git" , "diff" , "--name-only" , "go.mod" )
@@ -25,7 +25,7 @@ func (env *runEnv) updateGoDependency() {
2525func (env * runEnv ) completeGoDependencyUpdate () {
2626 currentCommit := env .getCmdOutputOneLine ("get git SHA" , "git" , "rev-parse" , "--short=12" , "HEAD" )
2727 env .runGitCommand ("Checkout master" , "co" , "master" )
28- env .runGitCommand ("Merge in update branch" , "merge" , "-ff-only" , currentCommit )
28+ env .runGitCommand ("Merge in update branch" , "merge" , "-- ff-only" , currentCommit )
2929 env .runGitCommand ("Push to remote" , "push" )
3030}
3131
0 commit comments