From 6b59863487988053664acd5a677602cf5453dd24 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 05 2015 07:27:09 +0000 Subject: Fix indentation and variable name --- diff --git a/pagure/internal/__init__.py b/pagure/internal/__init__.py index ded2bae..e5acd6b 100644 --- a/pagure/internal/__init__.py +++ b/pagure/internal/__init__.py @@ -210,7 +210,7 @@ def mergeable_request_pull(): new_repo = pygit2.clone_repository(parentpath, newpath) # Checkout the correct branch - branch_ref = pagure.lib.git.get_branch_ref(new_repo, request.branch) + branch_to = pagure.lib.git.get_branch_ref(new_repo, request.branch) if not branch_to: shutil.rmtree(newpath) flask.abort(