Double up of a military formation

It appears to derive from a French military expression:

From A New and Enlarged Military Dictionary: In French and English; in ..., Volume 2

Doubler les rangs:

To form ranks entire, or to throw two ranks into one and thus to diminish the depth of any given number of men by extending their front. Hence to double up or extend the front of any leading line.