oh-my-git/levels/ref-create/win

4 lines
159 B
Text
Raw Normal View History

2020-09-13 21:55:51 +02:00
OBJECTS=$(git cat-file --batch-check='%(objectname)' --batch-all-objects | sort)
REF_TARGETS=$(git show-ref -s | sort | uniq)
test "$OBJECTS" = "$REF_TARGETS"