GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Fri, 28 Dec 2018 07:11:25 +0000 (15:11 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 28 Dec 2018 07:11:25 +0000 (15:11 +0800)
GitRepo.vala

index 522e58a..ea4e3e3 100644 (file)
@@ -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" });