This commit is contained in:
pika 2025-07-03 15:56:58 +02:00
parent 8d795ad707
commit ac22bdb067

View file

@ -531,11 +531,11 @@ __git__() {
esac
if [ -n "$commit_files" ] || [ -n "$commit_message" ]; then
echo "${CYAN}No changes on the remote branch. Adding changes and pushing with ${RED}${BOLD}'$commit_message'${NC}${CYAN} commit.${NC}"
[[ -z "$commit_files" ]] && commit_files=.
[[ -z "$commit_message" ]] && commit_message=wip
echo "${CYAN}No changes on the remote branch. Adding changes and pushing with ${RED}${BOLD}'$commit_message'${NC}${CYAN} commit.${NC}"
if (("${#commit_files}" <= 1)); then
git add $commit_files
else