FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 31c75e87 authored by Andrew Rice's avatar Andrew Rice
Browse files

Broke out standard git log messages as comments so I can find them later

parent 89c9ef12
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ import uk.ac.cam.cl.dtg.teaching.pottery.model.Submission;
@Path("/submissions")
public class ChimeSubmissionsController {
public static final String INITIALISED_NEXT_STEP = "Initialised next step";
private final Database database;
private final TemplateProcessor templateProcessor;
private final PotteryInterface potteryInterface;
......@@ -150,7 +151,7 @@ public class ChimeSubmissionsController {
taskInfo.potteryTaskId(), submissionDao.localRepo().variant(), skeletonFileName),
fileWriter);
if (fileWriter.isWritten()) {
g.commit().setMessage("Initialised next step").call();
g.commit().setMessage(INITIALISED_NEXT_STEP).call();
}
} catch (IOException | GitAPIException e) {
throw new GitApiError(e);
......
......@@ -56,6 +56,7 @@ import uk.ac.cam.cl.dtg.teaching.pottery.model.RepoInfoWithStatus;
public class ChimeTasksController {
private static final Pattern INVALID_REPO_NAME_PATTERN = Pattern.compile("[^a-zA-Z0-9-_]");
public static final String INITIALISED_TASK = "Initialised task";
private final TemplateProcessor templateProcessor;
private final PotteryInterface potteryInterface;
......@@ -202,7 +203,7 @@ public class ChimeTasksController {
fileWriter);
fileWriter.write("LICENSE", Templates.getLicenseFile());
fileWriter.write("NOTICE", Templates.getNotice(taskInfo, user));
g.commit().setMessage("Initialised task").call();
g.commit().setMessage(INITIALISED_TASK).call();
Optional<AssessedExerciseDao> assessedExercise =
AssessedExerciseDao.lookup(taskInfo.potteryTaskId(), q);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment