X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/8d993259251d0e9bba5623edc6d00b9a83552c79..e220a617bcd54e5fd324e21e418fff7c3c3f170a:/vcsh diff --git a/vcsh b/vcsh index 74b185e..993c8ed 100755 --- a/vcsh +++ b/vcsh @@ -15,8 +15,12 @@ # This should always be the first line of code to facilitate debugging [ -n "$VCSH_DEBUG" ] && set -vx + +# If '.git-HEAD' is appended to the version, you are seeing an unreleased +# version of vcsh; the master branch is supposed to be clean at all times +# so you can most likely just use it nonetheless +VERSION='1.20131229.git-HEAD' SELF=$(basename $0) -VERSION='1.20131214.git-HEAD' fatal() { echo "$SELF: fatal: $1" >&2 @@ -217,7 +221,7 @@ init() { [ ! -e "$GIT_DIR" ] || fatal "'$GIT_DIR' exists" 10 mkdir -p "$VCSH_BASE" || fatal "could not create '$VCSH_BASE'" 50 cd "$VCSH_BASE" || fatal "could not enter '$VCSH_BASE'" 11 - git init + git init --shared=0600 upgrade hook post-init }