diff --git a/src/app/Fake.Tools.Git/Information.fs b/src/app/Fake.Tools.Git/Information.fs
index ee3bb35fff1..3afba73d3eb 100644
--- a/src/app/Fake.Tools.Git/Information.fs
+++ b/src/app/Fake.Tools.Git/Information.fs
@@ -81,6 +81,15 @@ module Information =
| None -> reraise ()
| Some s -> s
+ ///
+ /// Returns the short SHA1 of the current HEAD
+ ///
+ ///
+ /// The git repository.
+ let getCurrentShortSHA1 repositoryDir =
+ let _, msg, _ = CommandHelper.runGitCommand repositoryDir "rev-parse --short HEAD"
+ msg |> String.separated ""
+
///
/// Shows the git status
///