Skip to content

Commit 267a78b

Browse files
authored
Merge pull request #69 from pieterlange/feature/flip-known-hosts-default
Flip the known_hosts enforcement to true so the git hosts actually get verified.
2 parents 28254d8 + cdd6f09 commit 267a78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cmd/git-sync/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var flPassword = flag.String("password", envString("GIT_SYNC_PASSWORD", ""),
6666

6767
var flSSH = flag.Bool("ssh", envBool("GIT_SYNC_SSH", false),
6868
"use SSH for git operations")
69-
var flSSHKnownHosts = flag.Bool("ssh-known-hosts", envBool("GIT_KNOWN_HOSTS", false),
69+
var flSSHKnownHosts = flag.Bool("ssh-known-hosts", envBool("GIT_KNOWN_HOSTS", true),
7070
"enable SSH known_hosts verification")
7171

7272
var log = newLoggerOrDie()

0 commit comments

Comments
 (0)