Adam Williamson wrote:
Hey folks - just in case you haven't all figured this out yet, if you're using the neat little trick of putting a few lines in your ~/.bashrc so that when you're in a directory containing a git repo, the prompt will display what branch you're in, it'll stop working when you update to the latest git - 1.7.12 - in F18 or Rawhide. To fix it, you need to change:

source /etc/bash_completion.d/git

to:

source /usr/share/doc/git-1.7.12/contrib/completion/git-prompt.sh

because upstream split the prompt stuff out from the bash_completion script. Perhaps the git packagers could consider providing git-prompt.sh in a more permanent location, so we don't have to poke .bashrc every time the git version changes? Thanks!

This is definitely planned. I mailed Adam (the other Adam) today to point out that this was broken by the 1.7.12 update. I don't have time to work on a fix though. But certainly, git-prompt.sh should be placed in a more permanent location in the next build.

--
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I'm astounded by people who want to 'know' the universe when it's hard
enough to find your way around Chinatown.
    -- Woody Allen

Attachment: pgpUhaEmxlECk.pgp
Description: PGP signature

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to