Learn more about these different git repos.
Other Git URLs
ebeccc2
@@ -1295,6 +1295,8 @@
def dist_git_url(self):
if app.config["DIST_GIT_URL"]:
if self.state == "forked":
+ if self.build.copr.forked_from.deleted:
+ return None
copr_dirname = self.build.copr.forked_from.main_dir.full_name
else:
copr_dirname = self.build.copr_dir.full_name
Fixes: #700, PR#701
So, the problem is, that we are trying to print dist-git URL to the original project which can be deleted. This PR keeps clickable "Dist Git Source" hash for forks, with the original project that still exists, but prints plain-text source hash (without a link) for forks without their original project.
Looks good to me, +1
f318bdaa0f819ca7fdd1271bdb60660a6ae830eb
Pull-Request has been closed by praiskup
Fixes: #700, PR#701