File tree 2 files changed +4
-2
lines changed
src/main/java/hudson/plugins/scm_sync_configuration
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
import org .apache .maven .scm .command .checkin .CheckInScmResult ;
10
10
import org .apache .maven .scm .command .checkout .CheckOutScmResult ;
11
11
import org .apache .maven .scm .command .remove .RemoveScmResult ;
12
+ import org .apache .maven .scm .command .update .UpdateScmResult ;
12
13
import org .apache .maven .scm .manager .NoSuchScmProviderException ;
13
14
import org .apache .maven .scm .manager .ScmManager ;
14
15
import org .apache .maven .scm .repository .ScmRepository ;
@@ -74,8 +75,8 @@ private boolean expectScmRepositoryInitiated(){
74
75
return scmRepositoryInitiated ;
75
76
}
76
77
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 ));
79
80
}
80
81
public boolean checkout (File checkoutDirectory ){
81
82
boolean checkoutOk = false ;
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ private void processCommitsQueue() {
202
202
203
203
if (updatedFiles .isEmpty ()){
204
204
LOGGER .finest ("Empty changeset to commit (no changes found on files) => commit skipped !" );
205
+ checkedInCommits .add (commit );
205
206
} else {
206
207
// Commiting files...
207
208
boolean result = scmManipulator .checkinFiles (scmRoot , commit .getMessage ());
You can’t perform that action at this time.
0 commit comments