I'm seeing 500 error code followed by '/usr/bin/git ls-tree -z -l refs/heads/: --' exited with code 0 while accessing a bitbucket repo in UI. And if I add .gitmodules file to the root folder of this repo then I'm not seeing the 500 error and able to access however we don't have submodules and the .gitmodules is empty causing my pipeline to fail. We've started seeing this issue from last couple of days. Fyi, I'm able to push and pull code without any issue.
Thanks!!