There seems to be an intermittent issue while fetching the latest commits of a PR. I tried a couple of methods, but both fail intermittently.
git clone --depth 1 https://github.com/qawoody/welcome-pipelines.git welcome-pipelines cd welcome-pipelines git checkout -b master-tmp git fetch --force --depth 1 origin "pull/4/merge:master" git checkout master git log --pretty=oneline
git clone --depth 50 https://github.com/qawoody/welcome-pipelines.git welcome-pipelines cd welcome-pipelines git fetch origin +refs/pull/4/merge: git checkout -qf FETCH_HEAD git log --pretty=oneline
In both the cases, you will observe that the merged branch doesn’t have the latest commits. Observing this issue from the past week.
Can someone help me on this? Or did anyone face this problem?
PS: The above-mentioned repository is an example public repo. I am facing this with many other repositories.