mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-07-03 17:33:22 +02:00
4 lines
143 B
Plaintext
4 lines
143 B
Plaintext
COMMIT_COUNT=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | grep commit | wc -l)
|
|
|
|
test "$COMMIT_COUNT" -gt 0
|