]> git.madduck.net Git - etc/zsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

no error when outside git tree
authormartin f. krafft <madduck@madduck.net>
Mon, 5 May 2008 19:14:39 +0000 (20:14 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 5 May 2008 19:14:39 +0000 (20:14 +0100)
.zsh/zshrc/85_git_prompt

index 7e445b09c213cae80d2409fdcc90d5d689fbdab8..626b4c374e65733104d908b825b3be7c23789c2d 100644 (file)
@@ -15,7 +15,7 @@ _get_git_cur_branch() {
 }
 
 _is_git_repo() {
 }
 
 _is_git_repo() {
-  [ "$(git rev-parse --is-inside-work-tree)" = true ]
+  [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = true ]
 }
 
 _set_git_psvar() {
 }
 
 _set_git_psvar() {