Exemplo n.º 1
0
func createHttpEnv(username string, repoConfig *api.RepoConfig, translatedPath string) []string {
	env := common.CreateEnv("http", username, repoConfig)

	env = append(env, "REMOTE_USER="******"receive-pack" service (push) in git-http-backend
	env = append(env, "GIT_HTTP_EXPORT_ALL=1") // enables clones without "git-daemon-export-ok" magic file
	env = append(env, "PATH_TRANSLATED="+translatedPath)

	return env
}
Exemplo n.º 2
0
func createSshEnv(username string, repoConfig *api.RepoConfig) []string {
	return common.CreateEnv("ssh", username, repoConfig)
}