Skip to content

Commit 951ce0d

Browse files
committed
updater script
1 parent e5d1304 commit 951ce0d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

LabCodeRepoSetup/src/main/java/edu/wpi/rbe/UpdateAllLabRepos.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ public static void main(String[] args) throws Exception {
9292
commands.add("master"); // command
9393
LabCodeRepoSetupMain.run(commands, myDir);
9494
}
95+
String sourceProj = teamAssignments.get(repoDestBaseName).get(0);
96+
String sourceRepo = teamAssignments.get(repoDestBaseName).get(1);
97+
List<String> commands = new ArrayList<String>();
98+
commands.add("git"); // command
99+
commands.add("pull"); // command
100+
commands.add("git@github.com:" + sourceProj + "/" + sourceRepo + ".git"); // command
101+
commands.add("master"); // command
102+
LabCodeRepoSetupMain.run(commands, myDir);
103+
104+
commands = new ArrayList<String>();
105+
commands.add("git"); // command
106+
commands.add("push"); // command
107+
commands.add("origin"); // command
108+
commands.add("master"); // command
109+
LabCodeRepoSetupMain.run(commands, myDir);
95110

96111
}
97112
}

0 commit comments

Comments
 (0)