style: normalizare CRLF -> LF pentru scripturile shell
Doar line endings, zero modificari de continut (verificat cu
git diff --ignore-cr-at-eol: fara diferente ramase pe aceste fisiere).
Fisierele aveau CRLF comis efectiv in repo, nu doar in working tree.
Sunt scripturi care ruleaza pe Linux (migrarea Oracle, LXC 171 claude-agent),
iar deployate direct din working tree bash le refuza cu
"$'\r': command not found" - exact capcana pe care .gitattributes (comis in
9475842) o previne de acum inainte pentru fisierele noi.
Nu sunt incluse fisierele .md/.sql din roa-windows-setup: acelea au
modificari reale de continut, in curs, si apartin altui commit.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BhQBTegE4PiMPPaapLHjkc
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Script pentru a finaliza un task (commit + push)
|
||||
|
||||
PROJECT_DIR="/workspace/romfastsql"
|
||||
cd "$PROJECT_DIR" || exit 1
|
||||
|
||||
BRANCH=$(git branch --show-current)
|
||||
|
||||
if [ "$BRANCH" = "main" ]; then
|
||||
echo "❌ Ești pe main! Nu face commit direct pe main."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "📋 Status curent:"
|
||||
git status --short
|
||||
|
||||
echo ""
|
||||
read -p "Mesaj commit: " COMMIT_MSG
|
||||
|
||||
if [ -z "$COMMIT_MSG" ]; then
|
||||
echo "❌ Trebuie să dai un mesaj pentru commit"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add .
|
||||
git commit -m "$COMMIT_MSG"
|
||||
git push -u origin "$BRANCH"
|
||||
|
||||
echo ""
|
||||
echo "✅ Done! Branch-ul $BRANCH a fost push-uit."
|
||||
echo "🔗 Creează Pull Request în Gitea: https://gitea.romfast.ro/romfast/romfastsql/compare/main...$BRANCH"
|
||||
#!/bin/bash
|
||||
# Script pentru a finaliza un task (commit + push)
|
||||
|
||||
PROJECT_DIR="/workspace/romfastsql"
|
||||
cd "$PROJECT_DIR" || exit 1
|
||||
|
||||
BRANCH=$(git branch --show-current)
|
||||
|
||||
if [ "$BRANCH" = "main" ]; then
|
||||
echo "❌ Ești pe main! Nu face commit direct pe main."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "📋 Status curent:"
|
||||
git status --short
|
||||
|
||||
echo ""
|
||||
read -p "Mesaj commit: " COMMIT_MSG
|
||||
|
||||
if [ -z "$COMMIT_MSG" ]; then
|
||||
echo "❌ Trebuie să dai un mesaj pentru commit"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add .
|
||||
git commit -m "$COMMIT_MSG"
|
||||
git push -u origin "$BRANCH"
|
||||
|
||||
echo ""
|
||||
echo "✅ Done! Branch-ul $BRANCH a fost push-uit."
|
||||
echo "🔗 Creează Pull Request în Gitea: https://gitea.romfast.ro/romfast/romfastsql/compare/main...$BRANCH"
|
||||
|
||||
Reference in New Issue
Block a user