From f4b8bfe4287bfbb60a6c474039b9d9121bb4767d Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 1 Oct 2012 15:32:29 -0400 Subject: [PATCH] Turn off dumping the course back into git --- cms/djangoapps/contentstore/views.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index 93a650d44c..9753f5bfd0 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -385,16 +385,6 @@ def save_item(request): existing_item.metadata.update(posted_metadata) modulestore().update_metadata(item_location, existing_item.metadata) - # Export the course back to github - # This uses wildcarding to find the course, which requires handling - # multiple courses returned, but there should only ever be one - course_location = Location(item_location)._replace( - category='course', name=None) - courses = modulestore().get_items(course_location, depth=None) - for course in courses: - author_string = user_author_string(request.user) - export_to_github(course, "CMS Edit", author_string) - descriptor = modulestore().get_item(item_location) preview_html = get_module_previews(request, descriptor)[0]