Fixed in_git_repo to handle the case where we are in a UNC path.
authoradefaria <adefaria@adefaria-lt.audience.local>
Tue, 1 Apr 2014 20:53:47 +0000 (13:53 -0700)
committeradefaria <adefaria@adefaria-lt.audience.local>
Tue, 1 Apr 2014 20:53:47 +0000 (13:53 -0700)
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;