Unable to push changes, pushurl is missing
First of all, I am in doubt whether this is the correct place for posting this issue. Feel free to redirect me.
So this is my problem: I am not able to push to any branch. When using git push
I get:
fatal: unable to access 'http://de.git.xonotic.org/xonotic/xonotic-maps.pk3dir.git/': The requested URL returned error: 403
It boils down to an incorrect .git/config
. The pushurl
is not specified meaning that git push
will use url
(as shown above in the message) to push to. Though this is wrong as the pushurl is different to the url:
pushurl = ssh://git@gitlab.com/xonotic/xonotic-maps.pk3dir.git
Writing the pushurl manually into the config file solves this problem temporally, until the next update with ./all update
.
Note that this is not specific to the xonotic-maps repository but occurs in all (sub-)repositories of Xonotic.
This is how I cloned and compiled Xonotic:
git clone https://gitlab.com/xonotic/xonotic.git
cd xonotic/
./all update -l best
SDL_CONFIG=sdl2-config ./all compile