From: Lars Hjemli Date: Fri, 4 Jan 2008 12:43:40 +0000 (+0100) Subject: Handle missing default branch and error out on invalid branch names X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/f80ff37a1706e6774ca21a3ce1fceeb17f89a37a?ds=sidebyside;hp=f80ff37a1706e6774ca21a3ce1fceeb17f89a37a Handle missing default branch and error out on invalid branch names When no branch is specified and the repository does not have a default branch, use the first branch. Also, print sensible errormessages when the repository does not contain any branches and when invalid branchnames are specified. Signed-off-by: Lars Hjemli ---