From 08eaf87f8482de75aa698acbc80d4733d197e0d1 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 16 2017 16:18:36 +0000 Subject: Fix indentation for removing the fork inside the block where it is defined --- diff --git a/pagure/lib/git.py b/pagure/lib/git.py index f460416..d55be94 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -247,8 +247,9 @@ def update_git(obj, repo, repofolder): PagureRepo.push(ori_remote, refname) - # Remove the clone - shutil.rmtree(newpath) + # Remove the clone + shutil.rmtree(newpath) + # Remove the lock file os.unlink(lockfile) @@ -926,8 +927,9 @@ def update_file_in_git( raise pagure.exceptions.PagureException( 'Commit could not be done: %s' % err) - # Remove the clone - shutil.rmtree(newpath) + # Remove the clone + shutil.rmtree(newpath) + # Remove the lock file os.unlink(lockfile)