Exit if we are not in a git repo

This commit is contained in:
Andrew Huss 2017-01-28 15:53:55 -08:00
parent adb698f93e
commit 057caf389d

View file

@ -180,6 +180,9 @@ function changelogs() {
git log --pretty=format:"- %s%n%b" --since="$(git show -s --format=%ad `git rev-list --all --max-count=1`)" | sort -nr
}
# Check if we are currently in a git repo.
git rev-parse --is-inside-work-tree > /dev/null
if [ $# -eq 1 ]
then
case $1 in