Bitbucket can not create merge diff or merge Edited

We're using the Gitflow Workflow and have migrated from a Mercurial repo (where we were using the same workflow).

Between the previous release and this, we did some management of a third-party library, previously cloned from git (when we were using Mercurial). Not entirely sure about this part, but I believe as part of the conversion, the .git-folder in the library was deleted.

Now, I created a pull request to merge our release branch (which does not have the .git folder) with the master branch (which has the .git folder). Bitbucket Server says "Bitbucket Server could not create the merge diff for this pull request"

The merge button is available, and if I try to perform a merge I get

'/usr/bin/git reset --quiet 4d5ac1b2a903ab1cd371c2fb39dc87fca107fdfa --' exited with code 128 saying: error: Invalid path 'vendor/CException/.git/HEAD' fatal: make_cache_entry failed for path 'vendor/CException/.git/HEAD'

I can however merge locally on my machine.

Any ideas on how to resolve this?

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

706 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot