- new 'create' command for explicit creation - new 'AutoCreate' trigger to prevent auto-creation on read operations or both read and write operations - a few related fixups to the perms command
16 lines
419 B
Bash
Executable file
16 lines
419 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Usage: ssh git@host create <repo>
|
|
#
|
|
# Create wild repo.
|
|
|
|
die() { echo "$@" >&2; exit 1; }
|
|
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
|
|
[ -z "$1" ] && usage
|
|
[ -z "$2" ] || usage
|
|
[ "$1" = "-h" ] && usage
|
|
[ -z "$GL_USER" ] && die GL_USER not set
|
|
|
|
# ----------------------------------------------------------------------
|
|
exec $GL_BINDIR/commands/perms -c "$@" < /dev/null
|