Skip to content

Commit 17be1f1

Browse files
committed
Fix -ff-only to --ff-only
1 parent c2aca06 commit 17be1f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ziti-ci/update-deps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
func (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() {
2525
func (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

Comments
 (0)