Skip to content

Commit 5d339dc

Browse files
committed
fixed EVCSFileNotFound throwing in getFileContent()
1 parent 50382f1 commit 5d339dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scm4j/vcs/GitVCS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public String getFileContent(String branchName, String fileRelativePath, String
306306
treeWalk.setRecursive(true);
307307
treeWalk.setFilter(PathFilter.create(fileRelativePath));
308308
if (!treeWalk.next()) {
309-
throw new EVCSFileNotFound(getRepoUrl(), getRealBranchName(branchName), revision, fileRelativePath);
309+
throw new EVCSFileNotFound(getRepoUrl(), getRealBranchName(branchName), fileRelativePath, revision);
310310
}
311311
ObjectId objectId = treeWalk.getObjectId(0);
312312

0 commit comments

Comments
 (0)