diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-06-09 19:48:53 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-06-09 20:11:33 +0300 |
commit | 13d95cd7e5f24cd89bd7175bf5bf6a2141cd9803 (patch) | |
tree | 23e8cdf3593278adf3cdb09c4196487c2d68408f /Rakefile | |
parent | 45bba441466ea4201c5c245ac93803ce454b7256 (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-- | Rakefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |