diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2020-06-10 04:13:59 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2020-06-10 04:13:59 +0300 |
commit | c5c061f180d73b2bb3e9056771ec13c8723c97ee (patch) | |
tree | 23e8cdf3593278adf3cdb09c4196487c2d68408f | |
parent | 45bba441466ea4201c5c245ac93803ce454b7256 (diff) | |
parent | 13d95cd7e5f24cd89bd7175bf5bf6a2141cd9803 (diff) |
Merge branch 'print-last-commit-from-branch' into 'master'
Print the last commit of a branch
See merge request gitlab-org/gitlab-docs!947
-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 |