updated git.sh

pull/4/head
Hari Sekhon 1 year ago
parent b78ca41152
commit 68cb549feb

@ -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

Loading…
Cancel
Save