summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit8
1 files changed, 6 insertions, 2 deletions
diff --git a/dgit b/dgit
index d771ce1..35a2b37 100755
--- a/dgit
+++ b/dgit
@@ -2823,8 +2823,12 @@ END
return $lrf;
};
- if (parse_cfg_bool 'rewrite-map-enable', 'true',
- access_cfg('rewrite-map-enable', 'RETURN-UNDEF')) {
+ my $rewrite_enable = do {
+ local $idistro = $dsc_distro;
+ access_cfg('rewrite-map-enable', 'RETURN-UNDEF');
+ };
+
+ if (parse_cfg_bool 'rewrite-map-enable', 'true', $rewrite_enable) {
my $lrf = $do_fetch->("rewrite map", $rewritemap) or return;
$mapref = $lrf.'/'.$rewritemap;
my $rewritemapdata = git_cat_file $mapref.':map';