Exemple #1
0
def delete_repo(name):
    cmd.del_git_repo(name)
    return Response(ret.gen_ret_ok(), mimetype='application/json')
Exemple #2
0
def delete_repo(name):
    cmd.del_git_repo(name)
    return Response(ret.gen_ret_ok(), mimetype='application/json')
Exemple #3
0
def create_repo():
    req = request.get_json()
    cmd.add_git_repo(req['name'])
    return Response(ret.gen_ret_ok(message='git clone %s' %
                                   cmd.get_git_clone_path()),
                    mimetype='application/json')
Exemple #4
0
def create_repo():
    req = request.get_json()
    cmd.add_git_repo(req['name'])
    return Response(ret.gen_ret_ok(message='git clone %s' % cmd.get_git_clone_path()), mimetype='application/json')