diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-11-10 21:53:16 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-11-10 21:53:16 -0600 |
commit | 4769a1c8d65064f72d9b4ecdf9e14b778f0a219e (patch) | |
tree | 86a593d5a1e70c15c11b6e2f1ab4da4f48b1a0d6 /bashrc | |
parent | b0884a0294cbf96e76e52929dae6b4888c495b9b (diff) | |
download | conf-4769a1c8d65064f72d9b4ecdf9e14b778f0a219e.tar.gz conf-4769a1c8d65064f72d9b4ecdf9e14b778f0a219e.zip |
rev-parse is what i *actually* want here
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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='' |