Skip to content

Commit e923bc6

Browse files
fix: add sha prefix to versioning
1 parent 6c1123c commit e923bc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/git-version.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ module GitVersion
7474

7575
def current_commit_hash : String
7676
cmd = "git rev-parse --verify HEAD --short"
77-
return (exec cmd)[0].rjust(7, '0')
77+
sha = (exec cmd)[0].rjust(7, '0')
78+
return "sha" + sha
7879
end
7980

8081
def commits_distance(tag : String | Nil)

0 commit comments

Comments
 (0)