summaryrefslogtreecommitdiff
path: root/task/build_metadata.rake
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-12 17:40:18 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-12 22:44:05 -0500
commit1cba4ea133ae666d66e9c628eb4e69135d0cde65 (patch)
tree9ff043e21c3b9bb5cff9e230b1fad92508978430 /task/build_metadata.rake
parent2f952bbbeb056a17b1b7404e57cbf4c74d812001 (diff)
downloadbundler-1cba4ea133ae666d66e9c628eb4e69135d0cde65.tar.gz
[Rakefile] Assume that the build metadata is unchanged before changing it
Diffstat (limited to 'task/build_metadata.rake')
-rw-r--r--task/build_metadata.rake2
1 files changed, 2 insertions, 0 deletions
diff --git a/task/build_metadata.rake b/task/build_metadata.rake
index 5104898026..bd0a1dc135 100644
--- a/task/build_metadata.rake
+++ b/task/build_metadata.rake
@@ -1,5 +1,7 @@
# frozen_string_literal: true
file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", __FILE__] do |t|
+ sh "git update-index --assume-unchanged #{t.name}"
+
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
:git_sha => `git rev-parse --short HEAD`.strip,