Fixed the corner case where local master does not get pushed.