Re: Unable to push to cygutils git repo on sourceware
Hi Mark, On 2021-09-06 21:46, Mark Geisert wrote: Something's likely changed in the 4 years since I last did this :-). Your memory's faded! ;^> It's taken me months of use to remember correctly! For most Cygwin packages it's: https://cygwin.com/git-cygwin-packages/ https://cygwin.com/git/cygwin-packages/PKG.git # no longer works! https://cygwin.com/git/?p=git/cygwin-packages/PKG.git ssh://cyg...@cygwin.com/git/cygwin-packages/PKG.git but yours is a Cygwin *app*: https://cygwin.com/git/cygwin-apps/ https://cygwin.com/git/cygwin-apps/cygutils.git https://cygwin.com/git?p=cygwin-apps/cygutils.git ssh://cyg...@cygwin.com/git/cygwin-apps/cygutils.git $ git push fatal: remote error: service not enabled: /git/cygwin-cygutils.git $ cat .git/config [core] # blah elided [remote "origin"] url = git://sourceware.org/git/cygwin-cygutils.git url = ssh://cyg...@cygwin.com/git/cygwin-apps/cygutils [You may also use any .ssh/config Host alias for cyg...@cygwin.com which references your SSH key for Cygwin access] fetch = +refs/heads/*:refs/remotes/origin/* > [branch "master"] remote = origin merge = refs/heads/master [branch "playground"] remote = origin merge = refs/heads/playground I tried cygwin.com in place of sourceware.org but no change. Have the repositories moved or the access policies changed? Thanks for any leads, -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]
Re: Unable to push to cygutils git repo on sourceware
On 07/09/2021 06:15, Brian Inglis wrote: Hi Mark, On 2021-09-06 21:46, Mark Geisert wrote: Something's likely changed in the 4 years since I last did this :-). Your memory's faded! ;^> It's taken me months of use to remember correctly! [...] but yours is a Cygwin *app*: https://cygwin.com/git/cygwin-apps/ https://cygwin.com/git/cygwin-apps/cygutils.git https://cygwin.com/git?p=cygwin-apps/cygutils.git ssh://cyg...@cygwin.com/git/cygwin-apps/cygutils.git Correct URL, but I don't think the username 'cygwin' (which is used with ssh key demultiplexing via gitolite) has ever worked for cygwin-apps. I think you must use a sourceware.org account name, which is a member of the cygwin-apps group. I'll see if I can tweak the URLs presented via gitweb to make this a bit clearer.
Re: Unable to push to cygutils git repo on sourceware
On 07/09/2021 04:46, Mark Geisert wrote: Something's likely changed in the 4 years since I last did this :-). $ git push fatal: remote error: service not enabled: /git/cygwin-cygutils.git $ cat .git/config [core] # blah elided [remote "origin"] url = git://sourceware.org/git/cygwin-cygutils.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master I tried cygwin.com in place of sourceware.org but no change. Have the repositories moved or the access policies changed? Thanks for any leads, So, to answer the question actually asked: * While there have been some changes, this specific URL still works. (However, the published path nowadays is /git/cygwin-apps/cygutils.git) * We've never supported pushing using the git:// protocol (since this protocol doesn't do any authorization, pushes with a it are very rarely enabled) * So you perhaps explicitly did a "git push ssh://usern...@cygwin.com/git/cygwin-apps/cygutils.git" last time you pushed changes? * Since git supports configuring a separate push url, I'd suggest something like: git clone git://cygwin.com/git/cygwin-apps/cygutils.git git remote set-url origin --push ssh://usern...@cygwin.com/git/cygwin-apps/cygutils.git I find this convenient (especially when working with remote repositories to which other people will push changes), since it lets you pull without authenticating, but still push with appropriate authentication. I've amended https://sourceware.org/cygwin-apps/ to include that suggestion and hopefully clarify things.
Re: Unable to push to cygutils git repo on sourceware
Hi Jon, Jon Turney wrote: On 07/09/2021 04:46, Mark Geisert wrote: Something's likely changed in the 4 years since I last did this :-). ..or something allegedly similar to this... too much code under the bridge... $ git push fatal: remote error: service not enabled: /git/cygwin-cygutils.git $ cat .git/config [core] # blah elided [remote "origin"] url = git://sourceware.org/git/cygwin-cygutils.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master [...] So, to answer the question actually asked: * While there have been some changes, this specific URL still works. (However, the published path nowadays is /git/cygwin-apps/cygutils.git) * We've never supported pushing using the git:// protocol (since this protocol doesn't do any authorization, pushes with a it are very rarely enabled) OK, makes sense. * So you perhaps explicitly did a "git push ssh://usern...@cygwin.com/git/cygwin-apps/cygutils.git" last time you pushed changes? That seems pretty likely in retrospect, or @sourceware.org, same IP address. * Since git supports configuring a separate push url, I'd suggest something like: git clone git://cygwin.com/git/cygwin-apps/cygutils.git git remote set-url origin --push ssh://usern...@cygwin.com/git/cygwin-apps/cygutils.git I find this convenient (especially when working with remote repositories to which other people will push changes), since it lets you pull without authenticating, but still push with appropriate authentication. I've amended https://sourceware.org/cygwin-apps/ to include that suggestion and hopefully clarify things. Thank you for the advice and for updating the web docs. I'll be trying the push again shortly and will respond with any issues. Regards, ..mark