From d9ad1454e33dd2d9ab5d3ecb86425c2e708a5c49 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 31 Jul 2017 10:34:03 -0400 Subject: [PATCH] Fixed the function to switch git repo branches --- lib/FormulaRepo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/FormulaRepo.py b/lib/FormulaRepo.py index 587a9da..723bd07 100644 --- a/lib/FormulaRepo.py +++ b/lib/FormulaRepo.py @@ -53,7 +53,8 @@ class FormulaRepo(): # switch to branch def switch_branch(self, branch): - self.repo.checkout('branch') + print('Switching %s to the \'%s\' branch' % (self.repo_path, branch)) + self.repo.checkout(branch) # retrieves repo from remote location def retrieve(self):