X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=devel%2Fnmbug%2Fnmbug;h=b9c70e4b205d168ce72ac3273e032c45b6e77de7;hb=f7a7f78aebd7f0571cad7f4813ef18dac5247c73;hp=73d64fe5f90735cdd3c0ede8efec62889ab62896;hpb=17b468ac9f43fb63787f913f31dada380cc4089d;p=obsolete%2Fnotmuch-old diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug index 73d64fe5..b9c70e4b 100755 --- a/devel/nmbug/nmbug +++ b/devel/nmbug/nmbug @@ -15,9 +15,6 @@ $NMBGIT .= '/.git' if (-d $NMBGIT.'/.git'); my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::'; -# magic hash for git -my $EMPTYBLOB = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'; - # for encoding my $ESCAPE_CHAR = '%'; @@ -50,6 +47,9 @@ if (!exists $command{$subcommand}) { usage (); } +# magic hash for git +my $EMPTYBLOB = git (qw{hash-object -t blob /dev/null}); + &{$command{$subcommand}}(@ARGV); sub git_pipe {