American Apparel has signed an amended credit agreement with one of its key lenders, linked to the company's future performance.