Parcourir la Source

fixed bug with default vcs selection order

bmallred 10 ans auparavant
Parent
Commettre
1ac1cccc3c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      cmd/app.go

+ 2 - 2
cmd/app.go

@ -71,13 +71,13 @@ func GetVersionControlSystems() []string {
71 71
}
72 72
73 73
func ConfigureEnvironment() {
74
	systems := GetVersionControlSystems()
75
76 74
	env := os.Getenv("CODE_VCS")
77 75
	if env == "" {
78 76
		os.Setenv("CODE_VCS", "git;hg;tf;bzr")
79 77
	}
80 78
79
	systems := GetVersionControlSystems()
80
81 81
	// Configure VCS checking
82 82
	for _, vcs := range systems {
83 83
		key := fmt.Sprintf("CODE_%s_CHECK", strings.ToUpper(vcs))