Join GitHub today
import-from-git should support autodetection of doc type and create a document with that type #18
actually, the mime-type needs to be detected and set.
ideally this would be done by writing a pike module that imports the magic database used by file. such a module could then be contributed to pike itself.
alternatively a sTeam service that calls the file command and returns the result would work.
finally, the simplest solution is probably to call file from the import script.