diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/git/sha1.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/git/sha1.go b/modules/git/sha1.go index bccc94f103..06c8ad14b5 100644 --- a/modules/git/sha1.go +++ b/modules/git/sha1.go @@ -17,6 +17,9 @@ import ( // EmptySHA defines empty git SHA const EmptySHA = "0000000000000000000000000000000000000000" +// EmptyTreeSHA is the SHA of an empty tree +const EmptyTreeSHA = "4b825dc642cb6eb9a060e54bf8d69288fbee4904" + // SHAPattern can be used to determine if a string is an valid sha var SHAPattern = regexp.MustCompile(`^[0-9a-f]{4,40}$`) |