From fdf8d8ef724e1a0df57100d1f636439b56374c98 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 8 Nov 2009 14:16:57 -0600 Subject: apparently this requires -h (why wasn't this a problem before?) --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index c0c6273..abe5550 100644 --- a/bashrc +++ b/bashrc @@ -221,7 +221,7 @@ function _set_vcs { ;; git) vcs_dirty=$(git status -a > /dev/null 2>&1; echo $?) - vcs_branch=$(git symbolic-ref -q HEAD 2>/dev/null || git show-ref --hash=7 HEAD) + vcs_branch=$(git symbolic-ref -q HEAD 2>/dev/null || git show-ref -h -s --abbrev HEAD) vcs_branch=${vcs_branch#refs/heads/} if [[ "x$vcs_branch" == "xmaster" ]]; then vcs_branch='' -- cgit v1.2.3-54-g00ecf