From: Peter Rabbitson Date: Tue, 29 Jan 2013 21:52:45 +0000 (+0100) Subject: Prevent spurious unclean git repo state on ddl regeneration X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9d622a1b305581b1024a4dd4d06be7bb9b471bfc;p=dbsrgits%2FDBIx-Class-Historic.git Prevent spurious unclean git repo state on ddl regeneration --- 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); } }