summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-08 14:16:57 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-08 14:16:57 -0600
commitfdf8d8ef724e1a0df57100d1f636439b56374c98 (patch)
tree2504bafcbe9cac2c5b85e8eb4897525a02112ea0 /bashrc
parent7d7c4c54b1eacfcfbd0757b81651479cd9aebd7c (diff)
downloadconf-fdf8d8ef724e1a0df57100d1f636439b56374c98.tar.gz
conf-fdf8d8ef724e1a0df57100d1f636439b56374c98.zip
apparently this requires -h (why wasn't this a problem before?)
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
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=''