When did the Americans extract a British commitment to limit Allied operations in the mediterranean ?
On 12 April 1779 , France , which had directly allied itself with the Americans in February 1778 , signed a secret treaty with Spain , bringing it into the war against Great Britain .