diff --git a/lib/FormulaRepo.py b/lib/FormulaRepo.py index 0d508f1..2d9463c 100644 --- a/lib/FormulaRepo.py +++ b/lib/FormulaRepo.py @@ -31,8 +31,8 @@ class FormulaRepo(): if branch != False: # tracking a specific branch on the repo # check to make sure that the given branch name actually exists first - if not tracking_value in self.repo.branches: - print('%s is not an existing branch name for %s - please fix this.' % (tracking_value, self.repo_path)) + if not branch in self.repo.branches: + print('%s is not an existing branch name for %s - please fix this.' % (branch, self.repo_path)) sys.exit(1) repo_branch = self.repo.head.reference