Both embattled automakers were meeting with dealers , with just weeks remaining to hammer out new concessionary deals with creditors and their major union under the threat of a government-sponsored bankruptcy .