mirror of
https://github.com/vicky469/aside.git
synced 2026-07-22 17:42:04 +00:00
23 lines
570 B
Bash
Executable file
23 lines
570 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# pre-push: enforce the public Aside repository's single-remote routing.
|
|
#
|
|
# Rule:
|
|
# origin → normal public Obsidian marketplace repository remote
|
|
#
|
|
# Install: git config core.hooksPath scripts/hooks
|
|
|
|
remote="$1"
|
|
|
|
if [[ "$remote" != "origin" ]]; then
|
|
echo ""
|
|
echo " BLOCKED: this public Aside checkout uses only the 'origin' remote."
|
|
echo ""
|
|
echo " Normal pushes should target origin:"
|
|
echo " git push origin <branch>"
|
|
echo ""
|
|
echo " Private package or service work belongs in a separate clone."
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|