mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-09 22:00:20 +01:00
Rethrow runtime exceptions to keep intention
This commit is contained in:
@@ -54,6 +54,8 @@ public abstract class SimpleWorkdirFactory<R, W, C> implements WorkdirFactory<R,
|
||||
);
|
||||
ParentAndClone<R, W> parentAndClone = workdirProvider.getWorkdir(createWorkdirContext);
|
||||
return new WorkingCopy<>(parentAndClone.getClone(), parentAndClone.getParent(), () -> this.close(createWorkdirContext, parentAndClone), parentAndClone.getDirectory());
|
||||
} catch (RuntimeException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new InternalRepositoryException(getScmRepository(context), "could not clone repository in temporary directory", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user