Fixes git export to support repositories with dots in their name
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user