Skip to content

Commit e223a44

Browse files
committed
Ensure that the git hash output from ecs-cli --version is always 7 characters.
1 parent 558399a commit e223a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ecs-cli/modules/version/gen/version-gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func gitDirty() bool {
7272
}
7373

7474
func gitHash() string {
75-
cmd := exec.Command("git", "rev-parse", "--short", "HEAD")
75+
cmd := exec.Command("git", "rev-parse", "--short=7", "HEAD")
7676
hash, err := cmd.Output()
7777
if err != nil {
7878
return "UNKNOWN"

0 commit comments

Comments
 (0)