From b51c35a31f4a36c2561994293571e2df68afaf51 Mon Sep 17 00:00:00 2001 From: adefaria Date: Tue, 1 Apr 2014 13:53:47 -0700 Subject: [PATCH] Fixed in_git_repo to handle the case where we are in a UNC path. --- rc/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1