mirror of https://github.com/kubernetes/kops.git
Use short commit sha for default stage location instead of git-describe
This commit is contained in:
parent
1232b88ed8
commit
709e0bf36a
|
@ -92,7 +92,7 @@ func defaultStageLocation(kopsRoot string) (string, error) {
|
|||
jobName = defaultJobName
|
||||
}
|
||||
|
||||
cmd := exec.Command("git", "describe", "--always")
|
||||
cmd := exec.Command("git", "rev-parse", "--short", "HEAD")
|
||||
cmd.SetDir(kopsRoot)
|
||||
output, err := exec.CombinedOutputLines(cmd)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue