detect when running tests via dzil
[p5sagit/strictures.git] / lib / strictures.pm
index 0604746..1202799 100644 (file)
@@ -23,7 +23,8 @@ sub VERSION {
 
 my $extras_load_warned;
 
-our $Smells_Like_VCS = -e '.git' || -e '.svn';
+our $Smells_Like_VCS = (-e '.git' || -e '.svn'
+  || (-e '../../dist.ini' && (-e '../../.git' || -e '../../.svn')));
 
 sub import {
   strict->import;