[MacPorts] #36334: git-core @1.7.12 +bash_completion - __git_ps1: command not found
#36334: git-core @1.7.12 +bash_completion - __git_ps1: command not found ------------------------+-------------------------------- Reporter: tshubitz@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: git-core ------------------------+-------------------------------- v.1.7.12 of 'git-core' changed the shell script that is used to load the 'bash_completion' shell function. The current version of this MacPort installs the previous shell script instead of the new script. See "Git v1.7.12 Release Notes" for verification. * A rather heavy-ish "git completion" script has been split to create a separate "git prompting" script, to help lazy-autoloading of the completion part while making prompting part always available. Changing line 169 in the Portfile should correct the issue. FROM ${worksrcpath}/contrib/completion/git-completion.bash TO ${worksrcpath}/contrib/completion/git-prompt.sh tim shubitz -- Ticket URL: <https://trac.macports.org/ticket/36334> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36334: git-core @1.7.12 +bash_completion - __git_ps1: command not found -------------------------+------------------------- Reporter: tshubitz@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: git-core | -------------------------+------------------------- Changes (by ciserlohn@…): * owner: macports-tickets@… => ciserlohn@… -- Ticket URL: <https://trac.macports.org/ticket/36334#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36334: git-core @1.7.12 +bash_completion - __git_ps1: command not found -------------------------+------------------------- Reporter: tshubitz@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: git-core | -------------------------+------------------------- Changes (by ciserlohn@…): * status: new => closed * resolution: => fixed Comment: Replying to [ticket:36334 tshubitz@…]:
Changing line 169 in the Portfile should correct the issue.
FROM
${worksrcpath}/contrib/completion/git-completion.bash
TO
${worksrcpath}/contrib/completion/git-prompt.sh
This won't work. The completion functions are still defined in "git- completion.bash". The separate "git-prompt.sh" is intended to make the prompting part available without using the bash completion part. As of version 1.7.12.1_1 (r98165) "git-prompt.sh" will be installed in /opt/local/share/git-core/. You will have to add something like this to your ~/.bashrc or ~/.profile to use it: {{{ if [ -f /opt/local/share/git-core/git-prompt.sh ]; then . /opt/local/share/git-core/git-prompt.sh fi }}} -- Ticket URL: <https://trac.macports.org/ticket/36334#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts