diff options
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 9c1adf3..aae3105 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -1023,10 +1023,7 @@ class PackageModule: localbranch = self.repo.active_branch.name except TypeError, e: raise FedpkgError('Repo in inconsistent state: %s' % e) - try: - merge = self.repo.git.config('--get', 'branch.%s.merge' % localbranch) - except git.errors.GitCommandError, e: - raise FedpkgError('Unable to find remote branch. Use --dist') + merge = self.repo.git.config('--get', 'branch.%s.merge' % localbranch) return(merge.split('/')[2]) def _findmasterbranch(self): |