mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-21 15:59:48 +01:00
return changesetId for git & hg
This commit is contained in:
@@ -64,10 +64,7 @@ public class GitModifyCommand extends AbstractGitCommand implements ModifyComman
|
||||
failIfNotChanged(() -> new NoChangesMadeException(repository, ModifyWorker.this.request.getBranch()));
|
||||
Optional<RevCommit> revCommit = doCommit(request.getCommitMessage(), request.getAuthor());
|
||||
push();
|
||||
if (!revCommit.isPresent()) {
|
||||
throw new NoChangesMadeException(repository, ModifyWorker.this.request.getBranch());
|
||||
}
|
||||
return ModifyWorker.this.request.getBranch();
|
||||
return revCommit.orElseThrow(() -> new NoChangesMadeException(repository, ModifyWorker.this.request.getBranch())).name();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user