def create_commit(imported_item):
  # print "Changing location to %s" % autopkglib.get_pref('MUNKI_REPO')
  os.chdir(autopkglib.get_pref('MUNKI_REPO'))
  # Now, we need to create a feature branch
  print "Creating feature branch."
  branch = '%s-%s' % (str(imported_item['name']),
                      str(imported_item["version"]))
  print change_feature_branch(branch)
  # Now add all items to git staging
  print "Adding items..."
  gitaddcmd = ['add', '--all']
  gitaddcmd.append(autopkglib.get_pref("MUNKI_REPO"))
  print git_run(gitaddcmd)
  # Create the commit
  print "Creating commit..."
  gitcommitcmd = ['commit', '-m']
  message = "Updating %s to version %s" % (str(imported_item['name']),
                                           str(imported_item["version"]))
  gitcommitcmd.append(message)
  print git_run(gitcommitcmd)
  # Switch back to master
  branch = 'master'
  print change_feature_branch(branch)
Test that can change the classifier of an instance without changing
dataset/ETHPy150Open facebook/IT-CPE/autopkg_runner/autopkg_runner.py/create_commit--crossover with--dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_classification.py/TestClassification.test_manipulation_of_classifier