Opened 11 years ago

Closed 11 years ago

#42546 closed defect (fixed)

textmate2: can't read "git.cmd": Failed to locate 'git' in path

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc:
Port: textmate2

Description

textmate2 fails to index, saying:

Failed to parse file editors/textmate2/Portfile: can't read "git.cmd": Failed to locate 'git' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?

This is on Leopard, which does not have an OS-provided version of git, and the git-core port is not installed either.

Deferring changing git.cmd until a pre-fetch block works around the problem; see patch. I realize the port won't compile on Leopard, but this change will at least allow those users to see the pre-fetch message telling them that, rather than seeing a message that the port does not exist.

Attachments (1)

textmate2.diff (436 bytes) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
proposed patch

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: textmate2.diff added

proposed patch

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

Status: newassigned

Please just revert the change to git.cmd from r116714 entirely. It was only done to help debug a problem that's related to some Apple-internal data structures related to SSL.

I'd do it myself, but I'm not currently at my Mac.

comment:2 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.