Page MenuHomePhorge

Can you allow git fetching specific commits?
Closed, ResolvedPublic

Asked by goddenrich on Sep 5 2022, 12:33.

Details

Part of our build process for getting phabricator uses the following command which errors:

$ git fetch origin [commit]
error: Server does not allow request for unadvertised object [commit]

Can you change the phorge repo server to not block these kind of fetches?

Answers

avivey
Updated 591 Days Ago

We've enabled mirroring to GitHub, which allows this:

git fetch https://github.com/phorgeit/phorge.git b11c6fcacd8bceafc2a2f223037952dc817f4d7f

And enabled this for SSH on this server:
git fetch -v ssh://git@we.phorge.it/source/phorge.git b11c6fcacd8bceafc2a2f223037952dc817f4d7f

But I wasn't able to enable it for HTTPS here:

$ git fetch https://we.phorge.it/source/phorge.git b11c6fcacd8bceafc2a2f223037952dc817f4d7f
error: Server does not allow request for unadvertised object b11c6fcacd8bceafc2a2f223037952dc817f4d7f

even after updating lots of .gitconfig files all around.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.