X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=maint%2FMakefile.PL.inc%2F56_autogen_testddl.pl;h=a9425d3cc8fb6993435827d2d107c11a7a2d7a3c;hp=21903bf5b5ecb5e7ff93d355fc78d28c5d292510;hb=9d622a1b305581b1024a4dd4d06be7bb9b471bfc;hpb=8c21eef750db35dbc8f363ffa7218ef71073d656 diff --git a/maint/Makefile.PL.inc/56_autogen_testddl.pl b/maint/Makefile.PL.inc/56_autogen_testddl.pl index 21903bf..a9425d3 100644 --- a/maint/Makefile.PL.inc/56_autogen_testddl.pl +++ b/maint/Makefile.PL.inc/56_autogen_testddl.pl @@ -13,6 +13,10 @@ if ( DBIx::Class::Optional::Dependencies->req_ok_for ('deploy') ) { open (my $fh, '>:unix', $ddl_fn) or die "Unable to open $ddl_fn: $!"; print $fh $out; close $fh; + + # if we don't do it some git tools (e.g. gitk) get confused that the + # ddl file is modified, when it clearly isn't + system('git status --porcelain >' . File::Spec->devnull); } }