Fixes https://pagure.io/pagure/issue/537
Still needs:
I can either update this PR or make a new one, as is more convenient :)
rebased
Do you need to re-add them every time? I think that this might be going to error if it was already added before?
Don't you need to indicate --mirror here to make sure the push doesn't come back with "please pull first"?
I think it might be useful to add all this debugging to some database field and let that display i nthe web interface, so that users can still see it even if we don't want full-blown general debugging turned on.
Why this? ssh://$server/$directory works pretty well, even if it's not the "default" for GitHub and the likes.
Doesn't the private_key object have a .public_bytes()?
It will error but that's fine since we don't actually check the output :)
So I don't need --mirror here since I specified --mirror=push when adding the remote
--mirror
--mirror=push
Because it's easier for me to use standardized URLs all having the same format
Fair enough
Not from what I read on the doc, maybe I missed it
Ah! Today I learned :).
Sorry :(
:D
It's a good idea but then we would need to adjust all the plugins so that would be outside the scope of this PR I think (but worth opening a ticket for)
6 new commits added
9 new commits added
1 new commit added
Perhaps add a comment that this is because this code is only in a too new version of pyca?
sure
Please note that some people might also provide ssh://user@test:whatever.git themselves, which means that you might not need to do a / -> : replacement... Perhaps just look up the very first "/ or :", and only do the replacement if that was a /?
just look up the very first "/ or :", and only do the replacement if that was a /?
Not sure I parse that entirely :)
Instead of mucking with the .ssh/config file, which would make it difficult to have two projects use the same remote server, I would suggest just passing "GIT_SSH_COMMAND='ssh -i $privatekey'" environment variable during the push.
Fixed as part of https://pagure.io/pagure/pull-request/3296
Pull-Request has been closed by pingou
Fixes https://pagure.io/pagure/issue/537