fixed missing --work-tree parameter