summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-10 21:53:16 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-10 21:53:16 -0600
commit4769a1c8d65064f72d9b4ecdf9e14b778f0a219e (patch)
tree86a593d5a1e70c15c11b6e2f1ab4da4f48b1a0d6 /bashrc
parentb0884a0294cbf96e76e52929dae6b4888c495b9b (diff)
downloadconf-4769a1c8d65064f72d9b4ecdf9e14b778f0a219e.tar.gz
conf-4769a1c8d65064f72d9b4ecdf9e14b778f0a219e.zip
rev-parse is what i *actually* want here
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
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=''