Browse Source

fixed bug with default vcs selection order

bmallred 10 years ago
parent
commit
1ac1cccc3c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cmd/app.go

+ 2 - 2
cmd/app.go

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