Hi,
as part of conditional deployment in the bitbucket pipelines, i am trying to use git diff
i.e. git diff remotes/origin/${branch_1} remotes/origin/master -- $file
for each object and deploy only specific objects.
I have create a new branch , updated the pipeline with :
clone:
depth: full
but the pipeline fails for my team mates deployment and works for me .below is the error that my team mate is seeing while deploying his branch :
<span>+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="develop" <a href="https://x-token-auth:%24REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/%24BITBUCKET_REPO_FULL_NAME.git" target="_blank" rel="noopener nofollow noreferrer">https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git</a> $BUILD_DIR</span><span>Cloning into '/opt/atlassian/pipelines/agent/build'...</span>
error :
fatal: bad revision 'remotes/origin/feature/<branch_name>