Modifying to get the default branch. Still remaining to reach the expected result.