From 4769a1c8d65064f72d9b4ecdf9e14b778f0a219e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 10 Nov 2009 21:53:16 -0600 Subject: rev-parse is what i *actually* want here --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index dc5f2c4..d48fe9b 100644 --- a/bashrc +++ b/bashrc @@ -222,7 +222,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 -h -s --abbrev HEAD) + vcs_branch=$(git symbolic-ref -q HEAD 2>/dev/null || git rev-parse --short HEAD) vcs_branch=${vcs_branch#refs/heads/} if [[ "x$vcs_branch" == "xmaster" ]]; then vcs_branch='' -- cgit v1.2.3-54-g00ecf