From ab16bac1dbe8c3c21049b52c5002930f6bde666e Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Tue, 10 Mar 2015 16:25:20 +0000 Subject: list files from the root, not current dir --- git-base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-base.sh') diff --git a/git-base.sh b/git-base.sh index fbd7ef9..b08c820 100755 --- a/git-base.sh +++ b/git-base.sh @@ -227,7 +227,7 @@ is_dirty() { else #no commit hash, thus can't use HEAD. #As it's inital commit we can just list the files. - if [[ -n "$(ls -a -1 | grep -Ev '(\.|\.\.|\.git)')" ]]; then + if [[ -n "$(ls -a -1 "$(git_root)" | grep -Ev '(\.|\.\.|\.git)')" ]]; then #files listed and no commit hash, thus changes return 0 else -- cgit v1.2.3