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:
authorMarcel Amirault <mamirault@gitlab.com>2020-06-10 04:13:59 +0300
committerMarcel Amirault <mamirault@gitlab.com>2020-06-10 04:13:59 +0300
commitc5c061f180d73b2bb3e9056771ec13c8723c97ee (patch)
tree23e8cdf3593278adf3cdb09c4196487c2d68408f
parent45bba441466ea4201c5c245ac93803ce454b7256 (diff)
parent13d95cd7e5f24cd89bd7175bf5bf6a2141cd9803 (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--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