X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;h=ec10a014251de51ad6245dceb1b9b621b406da0b;hp=5c19f071a3ef3611529a7b8528fd4bf7e038c5f5;hb=2a6a46caf4f1d149a8e72cb0fb0c90f9923a27bb;hpb=8f2e926941f05c2102697de8005d4b1954a6ea4f diff --git a/GitRepo.vala b/GitRepo.vala index 5c19f071..ec10a014 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -338,7 +338,7 @@ public class GitRepo : Object } return false; } - + public void loadActiveTicket() { this.activeTicket = null; @@ -350,14 +350,14 @@ public class GitRepo : Object if (ticket_id.length < 1) { return; } - this.activeTicket = RooTicket.singleton().getById(ticket_id); + this.activeTicket = RooTicket.singleton().getById(ticket_id.strip()); } - public bool setActiveTicket(RooTicket ticket, string branchname) + public bool setActiveTicket(RooTicket? ticket, string branchname) { if (!this.createBranchNamed(branchname)) { return false; @@ -612,7 +612,7 @@ public class GitRepo : Object public string push () throws Error, SpawnError { // should - return this.git({ "push", "--all" }); + return this.git({ "push" }); }