change git dir before copy