Unnecessary checkout for getting file size, Fixes: #2303

Avoid the unnecessary checkout for get the file size from joural. Fix #2023