Skip to content

Commit

Permalink
sandalphon: dont touch origin when user clone is requested
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Sep 7, 2024
1 parent 2a5fb1d commit 2bfe4ad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public boolean updateUserClone(String userJid, String problemJid) {

public boolean pushUserClone(String userJid, String problemJid) {
Path origin = getOriginDirPath(problemJid);
Path root = getRootDirPath(userJid, problemJid);
Path root = getCloneDirPath(userJid, problemJid);

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

public boolean fetchUserClone(String userJid, String problemJid) {
Path root = getRootDirPath(userJid, problemJid);
Path root = getCloneDirPath(userJid, problemJid);

return problemGit.fetch(root);
}

public void discardUserClone(String userJid, String problemJid) {
Path root = getRootDirPath(userJid, problemJid);
Path root = getCloneDirPath(userJid, problemJid);

problemFs.removeFile(root);
}
Expand Down

0 comments on commit 2bfe4ad

Please sign in to comment.