49. Where a person who is already under a sentence of imprisonment or detention passed on him under this Act for a former offence is convicted of an offence by a court martial, the court martial may award him a sentence of imprisonment or detention to commence at the expiration of the imprisonment or detention to which he has been previously sentenced, although the aggregate of the terms of imprisonment or
detention may exceed the term for which any of those punishments could be otherwise awarded :
Provided that nothing in this section shall cause a person to undergo imprisonment or detention for a period exceeding the aggregate of three consecutive years, and so much of any term of imprisonment or detention imposed on a person by a sentence in pursuance of this section as would prolong the total term of his punishment beyond that period shall be deemed to be remitted. *Imprisonment or detention of offenderwho is under sentence for previous offence.*