smarchive/puppet-git-hooks — pull request #2 by spkane (2013-05-29 20:50:52+00:00)
Title: Remove import lines from puppet files before parsing

Since a temp file is passed to the puppet parser import commands cause a parsing error, so we remove them, to side-step this a a generally safe manner.

See:
http://projects.puppetlabs.com/issues/9670
http://projects.puppetlabs.com/issues/9670#note-14