mirror of
https://github.com/git-quick-stats/git-quick-stats.git
synced 2026-05-25 11:24:56 +02:00
Merge pull request #20 from dangerhuss/exit-early-if-no-git-repo
Exit if we are not in a git repo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user