Index: src/org/jruby/util/Glob.java
===================================================================
RCS file: /cvsroot/jruby/jruby/src/org/jruby/util/Glob.java,v
retrieving revision 1.17
diff -u -r1.17 Glob.java
--- src/org/jruby/util/Glob.java	20 Mar 2006 05:01:19 -0000	1.17
+++ src/org/jruby/util/Glob.java	27 Mar 2006 19:33:09 -0000
@@ -16,6 +16,7 @@
  * Copyright (C) 2004-2005 Thomas E Enebo <enebo@acm.org>
  * Copyright (C) 2004 Charles O Nutter <headius@headius.com>
  * Copyright (C) 2004 Stefan Matthias Aust <sma@3plus4.de>
+ * Copyright (C) 2006 Ola Bini <ola.bini@ki.se>
  * 
  * Alternatively, the contents of this file may be used under the terms of
  * either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -173,6 +174,9 @@
                 }
             }
         }
+        if("**".equals(pattern)) {
+            matchingFiles.add(parent);
+        }
         
         return matchingFiles;
     }
