about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Prompts/prompt_clint_setup2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e65fff5e3..f46c5df54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-11-22  Clint Adams  <clint@zsh.org>
 
+	* unposted: Functions/Prompts/prompt_clint_setup: fix typo in git
+	psvar assignment.
+
 	* Sean Finney: 24115: Completion/Unix/Command/_git: offer tags as
 	well as heads where refspecs are valid.
 
diff --git a/Functions/Prompts/prompt_clint_setup b/Functions/Prompts/prompt_clint_setup
index 6cf76db72..a9960a016 100644
--- a/Functions/Prompts/prompt_clint_setup
+++ b/Functions/Prompts/prompt_clint_setup
@@ -66,7 +66,7 @@ prompt_clint_precmd () {
 
   git_dir=$(git-rev-parse --git-dir 2> /dev/null) || return
   git_ref=$(git-symbolic-ref HEAD 2> /dev/null) || git_ref="(no branch)"
-  psvar[2]=${ref#refs/heads/}
+  psvar[2]=${git_ref#refs/heads/}
 
 }