]> cat aescling's git repositories - mastodon.git/commitdiff
Add SOURCE_TAG to show source repository's tag (#10698)
authorUshitora Anqou <ushitora@anqou.net>
Sat, 4 May 2019 15:39:17 +0000 (00:39 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 4 May 2019 15:39:17 +0000 (17:39 +0200)
lib/mastodon/version.rb

index fecfe8e709326c051b1549d83ce2595a7c132de0..127c5104856e5c10126f5b8cc48272974113d7d8 100644 (file)
@@ -42,7 +42,7 @@ module Mastodon
 
     # specify git tag or commit hash here
     def source_tag
-      nil
+      ENV.fetch('SOURCE_TAG') { nil }
     end
 
     def source_url