Skip to content

Commit

Permalink
fix: no common ancestors
Browse files Browse the repository at this point in the history
closes #87

Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Aug 2, 2022
1 parent 69f2390 commit 585cf81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fork-cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func FindAllForks(
fmt.Sprintf("%s:%s", login, repo.GetDefaultBranch()),
&github.ListOptions{},
)
if err != nil {
if err != nil && resp.StatusCode != 404 {
return forks, fmt.Errorf("failed to compare repository with upstream: %s: %w", repo.GetFullName(), err)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ui/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func viewRepositoryDetails(repo *forkcleaner.RepositoryWithDetails) string {
details = append(details, fmt.Sprintf("Forked from %s", repo.ParentName))
}
if repo.ParentDeleted {
details = append(details, "Parent repository was deleted")
details = append(details, "Parent repository was deleted or there are no common ancestors")
}
if repo.ParentDMCATakeDown {
details = append(details, "Parent repository was taken down by DMCA")
Expand Down

0 comments on commit 585cf81

Please sign in to comment.