From 68cb549feb20444ad8d1b34046d84d3d73b08da2 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sun, 7 May 2023 02:15:52 +0100 Subject: [PATCH] updated git.sh --- .bash.d/git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash.d/git.sh b/.bash.d/git.sh index 5ec9e63a..62d646e9 100644 --- a/.bash.d/git.sh +++ b/.bash.d/git.sh @@ -159,9 +159,9 @@ git_root(){ } gitgc(){ - cd "$(git_root)" + cd "$(git_root)" || : if ! [ -d .git ]; then - echo "not at top of a git repo, not .git/ directory found" + echo "not in a git repo, no .git/ directory and git root dir not found" return 1 fi du -sh .git