I'm using CircleCI to build an Android Github private project. Builds work fine but the commit history of origin/master
on the container is different from what I get on my local machine.
I did a diff b/w output of git rev-list origin/master
on my local machine and container and found quite a few differences - i.e. there are commits missing in the repo on the container.
I tried cloning the project from Github to my local machine and it showed me the same git commit history (correct commit count), is CircleCI doing something different?
git rev-list origin/master
does not matter. If the revision built by CircleCI is the right one, it's just okay. CircleCI could have a shallow-clone or a branch-specific fetch that does not touch itsorigin/master
.git rev-list --first-parent --count origin/master
as my app's versionCode actually! Also I'm sure that CircleCI is building on the master branch.git log --reverse
on the container, and that is not the initial commit.origin/master
records the status ofmaster
in the remote repository during last sync. It's not always the current head ofmaster
in the remote repository. It's quite normal thatorigin/master
in your local maschine is different from the one in the container because they could sync with the remote repository at different moments.--depth=1
for example. Then the local machine has much more commits than the container. These are the possible cases that come to my mind.