diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-11-08 14:16:57 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-11-08 14:16:57 -0600 |
commit | fdf8d8ef724e1a0df57100d1f636439b56374c98 (patch) | |
tree | 2504bafcbe9cac2c5b85e8eb4897525a02112ea0 | |
parent | 7d7c4c54b1eacfcfbd0757b81651479cd9aebd7c (diff) | |
download | conf-fdf8d8ef724e1a0df57100d1f636439b56374c98.tar.gz conf-fdf8d8ef724e1a0df57100d1f636439b56374c98.zip |
apparently this requires -h (why wasn't this a problem before?)
-rw-r--r-- | bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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='' |