[MacPorts] #60593: Use MacPorts git when syncing with git on OS X Mountain Lion and earlier
MacPorts
noreply at macports.org
Fri Jun 5 10:25:46 UTC 2020
#60593: Use MacPorts git when syncing with git on OS X Mountain Lion and earlier
---------------------+--------------------
Reporter: iEFdev | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.2
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by iEFdev):
Replying to [comment:1 kencu]:
> I use {{{port -v sync}}} exclusively, with a number of local
repositories that sync with github, and have not noted it to have this
error....are you on Lion still with this problem?
I ''think'' I've found the root of it now⦠I reverted the symlink, just to
reproduce the exact output message, but it still worked. Great in one way,
but not what I expected. I thought there maybe was some sort of connection
cache or something that allowed the connection through. So, now this
morning⦠It still worked without a symlink - but, when I use it on the
bootstrap â that's where it fails.
{{{#!bash
$ sudo boort -v sync
// ...
Synchronizing local ports tree from
file:///opt/bootstrap/var/macports/sources/github.com/macports/macports-
ports/
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert
protocol version while accessing https://github.com/macports/macports-
ports.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Command failed: /usr/bin/git pull --rebase
}}}
I've set it up with:
- `/opt/bootstrap/var/macports/sources/github.com/macports/macports-
ports/`
- `/opt/local/var/macports/sources/github.com/macports/macports-ports/ ->
symlink to other one`
''(ie. I'm using the same repo for both)''
So, I guess it's that curl/ssl issue, since it works from the port version
using the bootstrapped `curl` - which the bootstrap version doesn't.
â
I'm ok using a symlink (for my custom case). I still think it would be
better to use `git` instead of `/usr/bin/git`. Except solving this issue,
it would always use the users desired version of `git`, through `PATH`.
But, if you want to close it, I'm ok with it.
--
Ticket URL: <https://trac.macports.org/ticket/60593#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list