 He was transfer-listed by manager John Sheridan at the end of the 2012–13 season, and left the club by mutual consent in June 2013.Gilmartin returned to Dublin in July, having signed an 18-month contract with League of Ireland side St Patrick's Athletic.He made his Pats' debut later that month in a Dublin derby at Shamrock Rovers in the League of Ireland Cup.