git-check, use the main branch for wiki projects.

This commit is contained in:
me
2026-08-24 16:36:18 -07:00
parent 77300f3b82
commit 753611fb67
+2 -2
View File
@@ -867,9 +867,9 @@ function git-check {
if [[ -d .git ]]; then if [[ -d .git ]]; then
git ls-remote --exit-code --heads origin dev git ls-remote --exit-code --heads origin dev
dev_exists="$?" dev_exists="$?"
if [[ "$dev_exists" == 0 ]]; then if [[ "$dev_exists" == 0 && "$dir" != *".wiki" ]]; then
git switch dev git switch dev
elif [[ "$dev_exists" == 2 ]]; then elif [[ "$dev_exists" == 2 || "$dir" == *".wiki" ]]; then
git switch main git switch main
else else
echo "ERROR: Unknown status for dev_exists, '$dev_exists'." echo "ERROR: Unknown status for dev_exists, '$dev_exists'."