'This downloads and runs the checks for importing a course in git'

def get_course_from_git(self, gitloc, branch):

    if (not (gitloc.endswith('.git') or gitloc.startswith('http:') or gitloc.startswith('https:') or gitloc.startswith('git:'))):
        return _("The    git    repo    location    should    end    with    '.git',    and    be    a    valid    url")
    return self.import_mongo_course(gitloc, branch)
