Files
dotfiles/script
gitadmin 465a006027 feat(script/git-bare-clone): add option parsing, usage and workspace handling
Replace the previous simple one-liner with a small POSIX shell wrapper that:
- provides a usage() help text and -h flag
- supports -d <bare-repo-dir> to set the bare repo directory (default: "./.git-repo")
- validates required arguments and prints helpful errors with non-zero exit codes
- creates the workspace directory if it doesn't exist
- uses safer variable handling when constructing the git clone and .git file
- switches to /bin/sh -e for stricter, more portable execution

This makes the script more robust, user-friendly and configurable while preserving the original behavior of producing a gitdir file and configuring remote.origin.fetch.

BREAKING CHANGE: default bare repository directory changed from "./.bare" to "./.git-repo". If you rely on the previous default path, pass -d to restore the old location.
2026-03-03 20:06:43 -05:00
..
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00
2026-03-02 13:26:21 -05:00