dont need check local branch name in changelog module
authorZhang Qiang <qiang.z.zhang@intel.com>
Tue, 7 Aug 2012 07:44:42 +0000 (15:44 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 9 Aug 2012 01:56:31 +0000 (09:56 +0800)
gbs changelog is just used to generate changelog, so it should
work on any branch.

gitbuildsys/cmd_changelog.py

index 178087e..b7e8621 100644 (file)
@@ -87,8 +87,6 @@ def do(opts, _args):
 
     try:
         repo = RpmGitRepository('.')
-        if repo.get_branch() is None:
-            msger.error('currently not on a branch')
     except GitRepositoryError, err:
         msger.error(str(err))