Jump to content

Pushing to fork on gitea


Recommended Posts

Dear all,

I am following the instructions from here: https://gitea.wildfiregames.com/0ad/0ad/wiki/SubmittingPatches#contribution-flow

For some reason I cannot understand, I cannot push to my fork from my local machine, using either SSH or HTTPS. When I do simple edits from the gitea web front-end, it works. There is no error message on the console when pushing, except for SSH that indicates:

ssh: connect to host gitea.wildfiregames.com port 22: Network is unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

What am I missing?

Thank you (finally fixed this macOS wheel bug fixed, so happy to contribute).

Thank you,
Raffi

  • Like 1
Link to comment
Share on other sites

>  What are the configured remotes (git remote -v) and what command do you try to push?

Nothing non-standard:

raffi@MacBookPro system % git remote -v                                   
origin  https://gitea.wildfiregames.com/raffienficiaud/0ad.git (fetch)
origin  https://gitea.wildfiregames.com/raffienficiaud/0ad.git (push)
upstream        https://gitea.wildfiregames.com/0ad/0ad.git (fetch)
upstream        https://gitea.wildfiregames.com/0ad/0ad.git (push)

And for the push

git push --set-upstream origin bug/fix-mousewheel-events-macOS-6501

The last command now asks me several times my credentials and does not seem to accept them.

Moving to SSH, I am being asked http credentials as well. I believe this is because of `git lfs`.

Edited by Raffi Enficiaud
Link to comment
Share on other sites

Indeed, `git lfs` makes life hard. The following command simply works

> GIT_LFS_SKIP_PUSH=1 git push --set-upstream origin bug/fix-mousewheel-events-macOS-6501
Enumerating objects: 198, done.
Counting objects: 100% (198/198), done.
Delta compression using up to 12 threads
Compressing objects: 100% (45/45), done.
Writing objects: 100% (112/112), 13.96 KiB | 6.98 MiB/s, done.
Total 112 (delta 87), reused 91 (delta 67), pack-reused 0
remote: Resolving deltas: 100% (87/87), completed with 68 local objects.
remote: 
remote: Create a new pull request for 'bug/fix-mousewheel-events-macOS-6501':
remote:   https://gitea.wildfiregames.com/raffienficiaud/0ad/pulls/new/bug/fix-mousewheel-events-macOS-6501
remote: 
remote: . Processing 1 references
remote: Processed 1 references in total
To gitea.wildfiregames.com:raffienficiaud/0ad.git
 * [new branch]            bug/fix-mousewheel-events-macOS-6501 -> bug/fix-mousewheel-events-macOS-6501
branch 'bug/fix-mousewheel-events-macOS-6501' set up to track 'origin/bug/fix-mousewheel-events-macOS-6501'.

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...