mirror of
https://github.com/pomber/git-history.git
synced 2024-11-25 21:24:20 +03:00
Merge pull request #107 from Arminkhodaei/dev
bug fix in the case of encountering a deleted file commit
This commit is contained in:
commit
f2d6bc4a6d
@ -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