From 88670d0a334e86e00b6edcbfbaac2c34fed8bffd Mon Sep 17 00:00:00 2001 From: farhaanbukhsh Date: Jul 16 2016 08:47:07 +0000 Subject: Fix forking a fork in ui --- diff --git a/pagure/internal/__init__.py b/pagure/internal/__init__.py index 213c746..28973a3 100644 --- a/pagure/internal/__init__.py +++ b/pagure/internal/__init__.py @@ -270,14 +270,13 @@ def get_pull_request_ready_branch(): for branchname in repo_obj.listall_branches(): branch = repo_obj.lookup_branch(branchname) - diff_commits = [] if repo.is_fork: parentpath = os.path.join( pagure.APP.config['GIT_FOLDER'], repo.parent.path) if repo.parent.is_fork: parentpath = os.path.join( - pagure.APP.config['FORK_FOLDER'], repo.parent.path) + pagure.APP.config['GIT_FOLDER'], repo.parent.path) else: parentpath = os.path.join( pagure.APP.config['GIT_FOLDER'], repo.path) diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 9fd4e5e..7143573 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -17,7 +17,7 @@ {{ repo.name }} {%- endif -%} - {% if authenticated and not repo.is_fork %} + {% if authenticated %}