about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUshitora Anqou <ushitora@anqou.net>2019-05-05 00:39:17 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-05-04 17:39:17 +0200
commit56880fa76afa167aaca028faa3c3267b6521e0bc (patch)
treef31f599ca02d1dabbd49a5a122b7293c0f91d681
parent4f73cde4e136320e9325d7f43232c5a614874388 (diff)
Add SOURCE_TAG to show source repository's tag (#10698)
-rw-r--r--lib/mastodon/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb
index fecfe8e70..127c51048 100644
--- a/lib/mastodon/version.rb
+++ b/lib/mastodon/version.rb
@@ -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