Fixes git export to support repositories with dots in their name

This commit is contained in:
Carson Gee
2014-09-05 11:18:30 -04:00
parent 58e6dcf79c
commit 9abd35343e
2 changed files with 32 additions and 16 deletions

View File

@@ -126,7 +126,7 @@ def export_to_git(course_id, repo, user='', rdir=None):
# export course as xml before commiting and pushing
root_dir = os.path.dirname(rdirp)
course_dir = os.path.splitext(os.path.basename(rdirp))[0]
course_dir = os.path.basename(rdirp).rsplit('.git', 1)[0]
try:
export_to_xml(modulestore(), contentstore(), course_id,
root_dir, course_dir)