mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 07:11:41 +01:00
nmbug: replace hard-coded magic hash with git-hash-object
This is at least easier to understand than the magic hash. It may also be a bit more robust, although it is hard to imagine these numbers changing without many other changes in git.
This commit is contained in:
parent
17b468ac9f
commit
f7a7f78aeb
1 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,6 @@ $NMBGIT .= '/.git' if (-d $NMBGIT.'/.git');
|
||||||
|
|
||||||
my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::';
|
my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::';
|
||||||
|
|
||||||
# magic hash for git
|
|
||||||
my $EMPTYBLOB = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391';
|
|
||||||
|
|
||||||
# for encoding
|
# for encoding
|
||||||
|
|
||||||
my $ESCAPE_CHAR = '%';
|
my $ESCAPE_CHAR = '%';
|
||||||
|
@ -50,6 +47,9 @@ if (!exists $command{$subcommand}) {
|
||||||
usage ();
|
usage ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# magic hash for git
|
||||||
|
my $EMPTYBLOB = git (qw{hash-object -t blob /dev/null});
|
||||||
|
|
||||||
&{$command{$subcommand}}(@ARGV);
|
&{$command{$subcommand}}(@ARGV);
|
||||||
|
|
||||||
sub git_pipe {
|
sub git_pipe {
|
||||||
|
|
Loading…
Reference in a new issue