Skip to content

Commit

Permalink
fix(core): throw on empty repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Apr 26, 2024
1 parent 9236385 commit 7e893bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ get_git_commits() {

# Fast early-catch empty repository
if ! git rev-parse HEAD 1>/dev/null 2>&1; then
up_to_date "You have not committed yet"
log "You have not committed yet
You have to commit your initial/first commit."
exit 1
fi

# Check if exists last tag and is not empty
Expand Down

0 comments on commit 7e893bb

Please sign in to comment.