// Copyright 2019 The Fuchsia Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
package checkout | |
import ( | |
"log" | |
"os/exec" | |
) | |
// The path to the git executable. This must be on the PATH when execution begins. | |
var git string | |
func init() { | |
var err error | |
git, err = exec.LookPath("git") | |
if err != nil { | |
log.Fatal("git must be in PATH") | |
} | |
} |