summaryrefslogtreecommitdiff
path: root/qa/qa/git/repository.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/git/repository.rb')
-rw-r--r--qa/qa/git/repository.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/git/repository.rb b/qa/qa/git/repository.rb
index b9e199000d6..9db324ad6bf 100644
--- a/qa/qa/git/repository.rb
+++ b/qa/qa/git/repository.rb
@@ -66,6 +66,10 @@ module QA
def commits
`git log --oneline`.split("\n")
end
+
+ def last_commit_sha
+ `git show -s --format=%H HEAD`.strip
+ end
end
end
end