Skip to content

Commit 42d91a3

Browse files
authored
sandalphon: dont touch origin when user clone is requested (#663)
1 parent 2a5fb1d commit 42d91a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

judgels-backends/judgels-server-app/src/main/java/judgels/sandalphon/problem/base/version/ProblemVersionStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public boolean updateUserClone(String userJid, String problemJid) {
6565

6666
public boolean pushUserClone(String userJid, String problemJid) {
6767
Path origin = getOriginDirPath(problemJid);
68-
Path root = getRootDirPath(userJid, problemJid);
68+
Path root = getCloneDirPath(userJid, problemJid);
6969

7070
if (problemGit.push(root)) {
7171
problemGit.resetHard(origin);
@@ -79,13 +79,13 @@ public boolean pushUserClone(String userJid, String problemJid) {
7979
}
8080

8181
public boolean fetchUserClone(String userJid, String problemJid) {
82-
Path root = getRootDirPath(userJid, problemJid);
82+
Path root = getCloneDirPath(userJid, problemJid);
8383

8484
return problemGit.fetch(root);
8585
}
8686

8787
public void discardUserClone(String userJid, String problemJid) {
88-
Path root = getRootDirPath(userJid, problemJid);
88+
Path root = getCloneDirPath(userJid, problemJid);
8989

9090
problemFs.removeFile(root);
9191
}

0 commit comments

Comments
 (0)