mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
nmbug: allow empty prefix
Current code does not distinguish between an empty string in the NMBPREFIX environment variable and the variable being undefined. This makes it impossible to define an empty prefix, if, e.g. somebody wants to dump all of their tags with nmbug.
This commit is contained in:
parent
f7a7f78aeb
commit
16bf7b4b89
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ my $NMBGIT = $ENV{NMBGIT} || $ENV{HOME}.'/.nmbug';
|
||||||
|
|
||||||
$NMBGIT .= '/.git' if (-d $NMBGIT.'/.git');
|
$NMBGIT .= '/.git' if (-d $NMBGIT.'/.git');
|
||||||
|
|
||||||
my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::';
|
my $TAGPREFIX = defined($ENV{NMBPREFIX}) ? $ENV{NMBPREFIX} : 'notmuch::';
|
||||||
|
|
||||||
# for encoding
|
# for encoding
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue