I wanted to rename a branch in one of our (Git) repositories. The way to do this is to
This last step fails, like this:
> git push origin New_Branch_Name Counting objects: 1374, done. Delta compression using up to 12 threads. Compressing objects: 100% (145/145), done. Writing objects: 100% (478/478), 34.37 MiB | 8.36 MiB/s, done. Total 478 (delta 349), reused 455 (delta 332) remote: error: unable to write sha1 filename ./objects/pack/pack-c4fe98c613c55dc30b0e148d41c11a6fb68857ac.pack: Permission denied remote: fatal: cannot store pack file error: unpack failed: index-pack abnormal exit To http://stash/repo_address.git ! [remote rejected] New_Branch_Name -> New_Branch_Name (unpacker error) error: failed to push some refs to 'http://stash/repo_address.git'
[I can push to all the other repos on the server and all the other branches of this repo without problems.]
I tried the following:
None of these change the result.
The repo is a live one with quite many active users and a history of ~100 pull requests I cannot afford to lose, so deleting and re-pushing the whole repo is not an acceptable option (unless there is a way to migrate the PR's to the new copy).
Any suggestions for what could be wrong and how I could fix it?
This post by slacy has similar symptoms:
I'd try manually fixing the file as they suggest and setting the core.sharedRepository flag, if it isn't already.
What version of Stash are you using? Have you made any changes to the repository configuration on disk (outside of the Stash administration)?
As said above, I already looked at the permissions and there is nothing more to give. (Also, all the other randomly sampled packfiles I checked in this repo and others have exactly the same settings.)
I set core.sharedRepository to "all", it does not change the output.
We have Stash 3.0.4 (but this problem has been with us since 2.11 or 2.12), on Windows Server 2008 R2. This core.sharedRepository setting I changed now is the only thing I changed outside of the web UI.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork? We've compiled a list here, along with...
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!
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