File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/hudson/plugins/scm_sync_configuration Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 99import org .apache .maven .scm .command .checkin .CheckInScmResult ;
1010import org .apache .maven .scm .command .checkout .CheckOutScmResult ;
1111import org .apache .maven .scm .command .remove .RemoveScmResult ;
12+ import org .apache .maven .scm .command .update .UpdateScmResult ;
1213import org .apache .maven .scm .manager .NoSuchScmProviderException ;
1314import org .apache .maven .scm .manager .ScmManager ;
1415import org .apache .maven .scm .repository .ScmRepository ;
@@ -74,8 +75,8 @@ private boolean expectScmRepositoryInitiated(){
7475 return scmRepositoryInitiated ;
7576 }
7677
77- public void update (File root ) throws ScmException {
78- this .scmManager .update (scmRepository , new ScmFileSet (root ));
78+ public UpdateScmResult update (File root ) throws ScmException {
79+ return this .scmManager .update (scmRepository , new ScmFileSet (root ));
7980 }
8081 public boolean checkout (File checkoutDirectory ){
8182 boolean checkoutOk = false ;
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ private void processCommitsQueue() {
202202
203203 if (updatedFiles .isEmpty ()){
204204 LOGGER .finest ("Empty changeset to commit (no changes found on files) => commit skipped !" );
205+ checkedInCommits .add (commit );
205206 } else {
206207 // Commiting files...
207208 boolean result = scmManipulator .checkinFiles (scmRoot , commit .getMessage ());
You can’t perform that action at this time.
0 commit comments