Skip to content

Commit

Permalink
Merge pull request #16196 from durandom/change_build_date
Browse files Browse the repository at this point in the history
use commit time of latest commit for BUILD date
  • Loading branch information
carbonin authored Nov 17, 2017
2 parents 64842b7 + ff44f64 commit a014294
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/vmdb/appliance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ def self.get_build
if File.exist?(build_file)
build = File.read(build_file).strip.split("-").last
else
date = Time.now.strftime("%Y%m%d%H%M%S")
sha = `git rev-parse --short HEAD`.chomp
build = "#{date}_#{sha}"
build = "unknown_#{sha}"
end

build
Expand Down

0 comments on commit a014294

Please sign in to comment.