]> git.madduck.net Git - code/vcsh.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:

Make `vcsh list` even more resilient ;)
authorRichard Hartmann <richih.mailinglist@gmail.com>
Fri, 29 Jun 2012 09:37:07 +0000 (11:37 +0200)
committerRichard Hartmann <richih.mailinglist@gmail.com>
Fri, 29 Jun 2012 09:37:07 +0000 (11:37 +0200)
vcsh

diff --git a/vcsh b/vcsh
index ce8d385d4fe0a0b550797adfecc43a40e6af64bb..358135a48ed814b63218d0fef0b6a68023afae0e 100755 (executable)
--- a/vcsh
+++ b/vcsh
@@ -139,7 +139,7 @@ init() {
 
 list() {
        for repo in "$VCSH_REPO_D"/*.git; do
 
 list() {
        for repo in "$VCSH_REPO_D"/*.git; do
-               [ -r "$repo" ] && echo $(basename "$repo" .git)
+               [ -d "$repo" ] && [ -r "$repo" ] && echo $(basename "$repo" .git)
        done
 }
 
        done
 }