You are not logged in.

#1 2015-06-05 17:09:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

[SOLVED] makepkg git clone fails (firewalled), how to use https

At my new employer git(hub) traffic has been blocked so I am unable to clone a repo with "git clone git://someurl/..." but I can clone via https "git clone https://someurl/..."

However, makepkg uses the former and fails with the following error:

Cloning into bare repository '/tmp/cower-git/cower' ...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection refused

Can I configure makepkg to use https cloning?  I can edit makepkg itself, but this seems far from ideal.

For the time being, I just cd'ed into 'src' and manually cloned via https, then backed out and used 'makepkg -ei'.  So I now have cower up and running, but this is a bit tedius to do for all git packages.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#2 2015-06-05 17:16:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] makepkg git clone fails (firewalled), how to use https

Just change the URL in the source entry of the PKGBUILD.

Offline

#3 2015-06-05 17:19:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] makepkg git clone fails (firewalled), how to use https

Change it how?  I tried changing it to "https://github..." but then makepkg didn't treat it as a git repo and just downloaded the webpage.

EDIT: nevermind, I'm an idiot:

source=("git+https://github/...")

I know I had done this before, but I wasn't finding it when I needed it.  Thanks.
  - Trilby: Moderator and Noob! wink


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-06-05 17:20:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] makepkg git clone fails (firewalled), how to use https

Offline

Board footer

Powered by FluxBB