1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
|
# File 'lib/cnvrg/datafiles.rb', line 1237
def start_commit(new_branch, force=false, chunks: 0, dataset: @dataset, message:nil)
idx = {}
commit = idx[:commit]
next_commit = idx[:next_commit]
response = Cnvrg::API.request(
"#{base_resource}/commit/start",
'POST',
{
dataset_slug: @dataset_slug,
new_branch: new_branch,
force:force,
username: @owner,
current_commit: commit,
next_commit: next_commit,
total_chunks: chunks,
message: message
}
)
Cnvrg::CLI.is_response_success(response, true)
response
rescue => e
false
end
|