fix: 允许新增空文件
This commit is contained in:
@@ -152,10 +152,10 @@ public class GitController {
|
|||||||
if (T.StrUtil.hasEmpty(action, path)) {
|
if (T.StrUtil.hasEmpty(action, path)) {
|
||||||
return R.error(RCode.PARAM_CANNOT_EMPTY);
|
return R.error(RCode.PARAM_CANNOT_EMPTY);
|
||||||
}
|
}
|
||||||
if (T.StrUtil.equalsAny(action, "create", "update")) {
|
// if (T.StrUtil.equalsAny(action, "create", "update")) {
|
||||||
String content = T.MapUtil.getStr(file, "content");
|
// String content = T.MapUtil.getStr(file, "content");
|
||||||
T.VerifyUtil.is(content).notEmpty(RCode.PARAM_CANNOT_EMPTY);
|
// T.VerifyUtil.is(content).notEmpty(RCode.PARAM_CANNOT_EMPTY);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
gitService.updateApplication(workspaceId, branchName, lastCommitId, message, files);
|
gitService.updateApplication(workspaceId, branchName, lastCommitId, message, files);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
|
|||||||
Reference in New Issue
Block a user