From: Matt S Trout Date: Fri, 25 Feb 2011 13:07:08 +0000 (+0000) Subject: rename t/smells-of-vcs/.svn to .exists and mkdir a .git instead X-Git-Tag: release_1.002001~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=abacb15a012489948b584b4bfb6470d2027adfeb;p=p5sagit%2Fstrictures.git rename t/smells-of-vcs/.svn to .exists and mkdir a .git instead Commiting a file called .git to git would confuse things. People (debian) who want to be able to import a tree into svn can't deal with a .svn existing. Therefore, we use .exists to ensure the directory's present, and then call mkdir on t/smells-of-vcs/.git so the strictures behaviour still triggers. --- diff --git a/Changes b/Changes index c021770..3f229d7 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ + - switch .svn to .git in smells-of-vcs test and create it ourselves + to ease importing of this dist into subversion repositories 1.002000 - 2011-02-16 - add multidimensional and bareword::filehandles in author mode 1.1.1 Dec 05 2010 diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index fefe9d9..fdde8cd 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -3,5 +3,5 @@ use Distar; author 'mst - Matt S. Trout (cpan:MSTROUT) '; manifest_include( - '' => qr{t/smells-of-vcs/.svn}, + '' => qr{t/smells-of-vcs/.exists}, ); diff --git a/t/smells-of-vcs/.svn b/t/smells-of-vcs/.exists similarity index 100% rename from t/smells-of-vcs/.svn rename to t/smells-of-vcs/.exists diff --git a/t/strictures.t b/t/strictures.t index 65b2893..47cfa20 100644 --- a/t/strictures.t +++ b/t/strictures.t @@ -1,3 +1,5 @@ +mkdir('t/smells-of-vcs/.git') or die "Couldn't create fake .git: $!"; + use Test::More qw(no_plan); our (@us, @expect);