Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error when creating a Pull Request in Repository

Joseph K July 2, 2014

Hi,


Just starting out on stash here and I have had the following error code when trying to select a source branch when creating a Pull Request within one of my repositories.

Below is the error;

An error occurred while executing an external process: '/usr/bin/git for-each-ref --sort=-committerdate --format=%(refname)|%(refname:short)|%(objectname) refs/heads/' exited with code 128 saying: fatal: missing object 0000000000000000000000000000000000000000 for refs/heads/feature-fix-honolulu-unit-tests

Any help would be massively appreciated?


Thanks.

1 answer

2 votes
dericleeyy July 28, 2014

As this issue is resolved in a support ticket, here is the resolution for reference:

Problem

"feature-fix-honolulu-unit-tests" exist in Stash filesystem but the remote ref is broken.

Trying to delete the branch or checking out gives the following error:

? muve git:(develop) git push origin :feature-fix-honolulu-unit-tests 
error: unable to delete 'feature-fix-honolulu-unit-tests': remote ref does not exist
error: failed to push some refs to 'ssh://git@stash.amazondcl.com:8443/muve2/muve.git'

? muve git:(develop) git checkout -b feature-fix-honolulu-unit-tests
fatal: A branch named 'feature-fix-honolulu-unit-tests' already exists.

Solution

Quote from Bryan Turner (Atlassian Stash developer)

Most likely, since creating such a ref shouldn't be possible, you'll have to fix it directly on the filesystem. It appears (from your support zip; thanks for that) that the MUVE2/muve repository is at <tt>/mnt/stashDrive/data/repositories/336</tt>. Someone with filesystem access will need to check for the presence of <tt>/mnt/stashDrive/data/repositories/336/refs/heads/feature-fix-honolulu-unit-tests</tt> (a loose ref) and, if it's there, remove it. Whether the loose ref exists or not, they'll also need to look for a <tt>refs/heads/feature-fix-honolulu-unit-tests</tt> line in<tt>/mnt/stashDrive/data/repositories/336/packed-refs</tt> and remove that if present.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events