From 1aba46de55a2b4b9c3189460ee7d2d2ad249f481 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Sun, 15 Jul 2012 15:33:01 -0400 Subject: [PATCH] Be consistent with the metadata key name for the data directory --- cms/djangoapps/github_sync/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/github_sync/__init__.py b/cms/djangoapps/github_sync/__init__.py index c142ca2897..108fd5629f 100644 --- a/cms/djangoapps/github_sync/__init__.py +++ b/cms/djangoapps/github_sync/__init__.py @@ -44,7 +44,7 @@ def export_to_github(course, commit_message, author_str=None): and push to github (if MITX_FEATURES['GITHUB_PUSH'] is True). If author_str is specified, uses it in the commit. ''' - repo_path = settings.DATA_DIR / course.metadata.get('course_dir', course.location.course) + repo_path = settings.DATA_DIR / course.metadata.get('data_dir', course.location.course) fs = OSFS(repo_path) xml = course.export_to_xml(fs)