Fixed .logout
[clearscm.git] / rc / git
diff --git a/rc/git b/rc/git
index fabea71..c6253a2 100644 (file)
--- a/rc/git
+++ b/rc/git
@@ -16,7 +16,7 @@
 function in_git_repo {
   pwd=$PWD
   
-  while [ "$pwd" != "/" ]; do
+  while [ "$pwd" != "/" -a "$pwd" != "//" ]; do
     if [ -d "$pwd/.git" ]; then
       true;
       return;