export commit before trying to find the path to the file