Use new IntegrateChangesFromWorkdirException in merge command

This commit is contained in:
René Pfeuffer
2019-03-29 16:13:29 +01:00
parent 2e93a9efec
commit f8a59a4d0f

View File

@@ -185,7 +185,8 @@ public class GitMergeCommand extends AbstractGitCommand implements MergeCommand
try { try {
clone.push().call(); clone.push().call();
} catch (GitAPIException e) { } catch (GitAPIException e) {
throw new InternalRepositoryException(context.getRepository(), "could not push merged branch " + target + " to origin", e); throw new IntegrateChangesFromWorkdirException(repository,
"could not push merged branch " + target + " into central repository", e);
} }
logger.debug("pushed merged branch {}", target); logger.debug("pushed merged branch {}", target);
} }