From: adefaria Date: Tue, 1 Apr 2014 20:53:47 +0000 (-0700) Subject: Fixed in_git_repo to handle the case where we are in a UNC path. X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=b51c35a31f4a36c2561994293571e2df68afaf51;hp=d266a5541890effba039977967bf046ea2e0f35b;p=clearscm.git Fixed in_git_repo to handle the case where we are in a UNC path. --- diff --git a/rc/git b/rc/git index fabea71..c6253a2 100644 --- 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;