Skip to content
Permalink
Browse files
988: Skara webrev is empty if patch has deleted files
Reviewed-by: rwestberg, ehelin
  • Loading branch information
erikj79 committed Apr 27, 2021
1 parent 4ab6f42 commit 629c501fd20e7e546ec8fe08e35616fa6dfa6a0a
Showing with 5 additions and 6 deletions.
  1. +5 −6 index.html
@@ -501,10 +501,7 @@
patchFile.innerHTML = "Patch";
code.append(patchFile, " ");

const rawFile = create("a");
rawFile.href = "https://raw.githubusercontent.com/" + metadata.head.repo.full_name + "/" + metadata.head.sha + "/" + file.filename;
rawFile.innerHTML = "Raw";
code.append(rawFile, " ");
code.append("--- ");

p.append(code);

@@ -1521,7 +1518,9 @@
dstLines.push(line);
} else if (line.startsWith("\\ No newline at end of file")) {
continue;
} else {
} else if (line === "") {
continue;
} else {
throw "Unexpected content on line " + i + ": '" + line + "'";
}
}
@@ -1621,7 +1620,7 @@
const index = state.index;
const file = state.comparison.files[index];
if (file.status === "deleted") {
return;
return Promise.resolve([]);
}

const raw_url = "https://raw.githubusercontent.com";

0 comments on commit 629c501

Please sign in to comment.