Use short commit sha for default stage location instead of git-describe

This commit is contained in:
Ole Markus With 2022-02-05 12:36:19 +01:00
parent 1232b88ed8
commit 709e0bf36a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {