The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting number of commits in bitbucket-pipelines.yml

ogun_ozturk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2019

I am trying to get number of commits of my master branch bitbucket-pipelines.yml file

 

and I use the command below

git rev-list --first-parent --count origin/master

But it started not counting after 50th commit and it keeps returning 50 everytime I push a new commit.

 

What is the reason for that and how can I fix that issue?

 

Any help would be appreciated. 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2019

Hello Mustafa,

By default, Pipelines uses a shallow clone when cloning the repository.

If you'd like the entire Git history. Please set the clone depth to be full with the configuration here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_depthdepth

Thanks,

Phil

TAGS
AUG Leaders

Atlassian Community Events