Governor-elect Larry Hogan, left, talks to his supporters with his father, Lawrence J. Hogan Sr., by his side during the election night party at the Westin Hotel on Nov. 5, 2014 in Annapolis. (Ricky Carioti/The Washington Post)

For months, Maryland Gov. Larry Hogan (R) said he didn’t like Donald Trump. Then, this summer, the popular first-term governor said he wouldn’t vote for the Republican presidential nominee or for Hillary Clinton.

He thought neither deserved to be president.

So, who got his vote?

His dad, an 88-year-old former congressman and Prince George’s County Executive.

Doug Mayer, a spokesman for Hogan, said Tuesday night that the governor voted during the state’s early-voting period, like about 1 in 5 state residents did.

“As he has said for many months, the governor is extremely disappointed in the candidates from both major parties and decided to write in the name of the person who taught him what it meant to hold public office with integrity, his father, Larry Hogan Sr.,” Mayer said.

The elder Hogan was the first Republican in Congress to announce his support for the impeachment of President Richard M. Nixon (R).

In his inauguration speech in 2015, Hogan said that his father’s decision “taught me more about integrity in one day than most men learn in a lifetime.”