cmd_changelog: Removed not working check.
authorEd Bartosh <eduard.bartosh@intel.com>
Wed, 22 Aug 2012 14:12:00 +0000 (17:12 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Thu, 23 Aug 2012 07:28:53 +0000 (10:28 +0300)
repo.is_clean returns tuple, so if not repo.is_clean() always False,
which makes this check useless. I prefer to remove it instead of
fixing because if I fix it it will start complaining each time git
repo has untracked files and users may not like it.

Change-Id: I5dc6a53e01d5f80aef6ab4bc5731170c9d924834

gitbuildsys/cmd_changelog.py

index caa3fba..f205d8f 100644 (file)
@@ -88,9 +88,6 @@ def do(opts, _args):
 
     project_root_dir = repo.path
 
-    if not repo.is_clean():
-        msger.error("Git tree is not clean")
-
     changes_file_list = glob.glob("%s/packaging/*.changes" % project_root_dir)
 
     if changes_file_list: