Fixing max file size handling for remote repositories