feat: print new commit messages after pulling updates
This commit is contained in:
@@ -156,7 +156,10 @@ update_repo() {
|
||||
return 0
|
||||
fi
|
||||
info "Repository out of date. Pulling updates..."
|
||||
local old_sha
|
||||
old_sha=$(git rev-parse HEAD)
|
||||
git fetch origin && git reset --hard origin/master && git clean -fd &>/dev/null
|
||||
printf "\033[1;34m%s\033[0m\n" "$(git log --oneline "$old_sha"..HEAD)"
|
||||
else
|
||||
info "Repository not found. Cloning..."
|
||||
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user