mirror of
https://github.com/pomber/git-history.git
synced 2024-11-22 23:13:20 +03:00
bug fix in the case of encountering a deleted file commit
This commit is contained in:
parent
54d9675e32
commit
2d13566de9
@ -18,6 +18,9 @@ async function getContent(repo, sha, path) {
|
||||
{ headers: getHeaders() }
|
||||
);
|
||||
|
||||
if (contentResponse.status === 404) {
|
||||
return { content: "" };
|
||||
}
|
||||
if (!contentResponse.ok) {
|
||||
throw contentResponse;
|
||||
}
|
||||
|
@ -20,6 +20,9 @@ async function getContent(repo, sha, path) {
|
||||
{ headers: getHeaders() }
|
||||
);
|
||||
|
||||
if (contentResponse.status === 404) {
|
||||
return { content: "" };
|
||||
}
|
||||
if (!contentResponse.ok) {
|
||||
throw contentResponse;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user