Skip to content

Commit 08a2136

Browse files
committed
Add git hash as rev version
1 parent 7ee0432 commit 08a2136

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sentry.cr

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ require "./sentry/sound_file_storage"
55
require "./sentry/process_runner.cr"
66

77
module Sentry
8-
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
8+
VERSION = {{
9+
`shards version "#{__DIR__}"`.chomp.stringify +
10+
" (rev " +
11+
`git rev-parse --short HEAD`.chomp.stringify +
12+
")"
13+
}}
914
end

0 commit comments

Comments
 (0)