File tree Expand file tree Collapse file tree
LabCodeRepoSetup/src/main/java/edu/wpi/rbe Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments