From: Graham Knop Date: Tue, 23 Aug 2016 09:35:04 +0000 (-0400) Subject: don't modify MANIFEST.SKIP if tracked X-Git-Tag: v0.003000~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5371ff5289e9cc015652703d47d5eb863926ae95;p=p5sagit%2FDistar.git don't modify MANIFEST.SKIP if tracked --- diff --git a/lib/Distar.pm b/lib/Distar.pm index c0950ca..0bc7d36 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -93,7 +93,11 @@ sub write_manifest_skip { sub flush { my $self = shift; - Distar::write_manifest_skip($self); + `git ls-files --error-unmatch MANIFEST.SKIP 2>&1`; + my $maniskip_tracked = !$?; + + Distar::write_manifest_skip($self) + unless $maniskip_tracked; $self->SUPER::flush(@_); }