don't modify MANIFEST.SKIP if tracked
Graham Knop [Tue, 23 Aug 2016 09:35:04 +0000 (05:35 -0400)]
lib/Distar.pm

index c0950ca..0bc7d36 100644 (file)
@@ -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(@_);
   }