I'm having a problem with Git which, according to everything I know about how Git works, should never happen.
I'm trying to clone
a repository from Bitbucket, on a clean directory. Just after cloning, the project shows uncommited changes to the repository - git status
shows several modified files. Those changes correspond to a pull request currently still awaiting revision and unmerged on said repository, by another developer.
The URL from which I clone has nothing that would indicate it's pointing to any specific commit or pull request, and the repository HEAD is in master. Furthermore, deleting the directory using rm -rf
or even switching to a completely different directory and then cloning again reproduces the issue. My coworkers however can't reproduce the issue in their local machines.
All usual measures like git reset --hard
or stashing changes just take me back to the repository as it was when cloned, including the uncommited changes I mentioned.
What could possibly be causing this weird behaviour?