Removed the bug that would occur if lookup_branches returned None. Changed the code so lookup_branches returns an empty list if no branches exist in the remote, and lookup_branch returns None
Removed the bug that would occur if lookup_branches returned None. Changed the code so lookup_branches returns an empty list if no branches exist in the remote, and lookup_branch returns None

sdg-mit/gitless,sdg-mit/gitless