chiark / gitweb /
Dgit: provide $git_null_obj
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Feb 2018 13:53:53 +0000 (13:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 11:25:49 +0000 (12:25 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Debian/Dgit.pm

index 3657aa1..7e5bcff 100644 (file)
@@ -55,6 +55,7 @@ BEGIN {
                       $package_re $component_re $deliberately_re
                      $distro_re $versiontag_re $series_filename_re
                      $extra_orig_namepart_re
+                     $git_null_obj
                       $branchprefix
                       initdebug enabledebug enabledebuglevel
                       printdebug debugcmd
@@ -83,6 +84,7 @@ our $versiontag_re = qr{[-+.\%_0-9a-zA-Z/]+};
 our $branchprefix = 'dgit';
 our $series_filename_re = qr{(?:^|\.)series(?!\n)$}s;
 our $extra_orig_namepart_re = qr{[-0-9a-z]+};
+our $git_null_obj = '0' x 40;
 
 # policy hook exit status bits
 # see dgit-repos-server head comment for documentation