I am setting up a repo on bitbucket.org which will be mirrored on an onsite bitbucket server.
Commits, PRs, merges etc will initially be done on bitbucket.org, and the changes pushed to the onsite one via a manual process.
The onsite server has been set up with a filesize limit of 2MB. (There's nothing I can do about that. From a project perspective that limitation is OK, I'm happier dealing with that than mess around with LFS.)
I want to make sure the same rule is applied to pushes made to the bitbucket.org repo.
If someone accidentally pushes a file larger than 2MB, I can see severe problems keeping the repos in sync.
EDIT:
an alternative would be to do a check at PR/merge time, as I'm probably only syncing the dev branch.
Hi @al_stewart ,
One possible solution is to configure a local hook(pre-commit) to check the file sizes before committing the content.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.