Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2020-06-09 19:48:53 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-06-09 20:11:33 +0300
commit13d95cd7e5f24cd89bd7175bf5bf6a2141cd9803 (patch)
tree23e8cdf3593278adf3cdb09c4196487c2d68408f /Rakefile
parent45bba441466ea4201c5c245ac93803ce454b7256 (diff)
Print the last commit of a branch
This is useful if we want to confirm that the correct changes were pulled from the upstream project. When we build the review apps multiple times during a review process, sometimes the content might not update. Printing the last commit that was pulled will help us compare to the last commit of the upstream project.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 41903b1c..0ca5553a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -64,6 +64,9 @@ task :pull_repos do
# Reset so that if the repo is cached, the latest commit will be used
`git reset --hard origin/#{branch}`
+ # Print the latest commit so that we can compare it to the branch we're
+ # pulling from, should we need to debug anything.
+ puts "Latest commit: #{`git log --oneline -n 1`}"
end
end
end