From 5f3bcd4db5621c86faf1fb54e539cfb50044709a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 28 Dec 2018 15:11:25 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 522e58a4..ea4e3e3b 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -602,7 +602,7 @@ public class GitRepo : Object var lines = this.git({"log", "master...", "--pretty=format:\"%H %P\"" }).split("\n");; var head = this.git({"log", "-1", "--pretty=format:\"%H %P\"" }); start = head.split(" ")[0]; - var start = ""; + var end = ""; for (var i = 0; i < lines.length; i++) { var cols = lines[i].split(" "); if (cols.length > 2) { @@ -612,7 +612,7 @@ public class GitRepo : Object } if (end == "") { var last = lines[lines.length-1]; - var end = last.split(" ")[1]; + end = last.split(" ")[1]; } return this.git({ "diff" , start+".."+end, "--no-color" }); -- 2.39.2