full installer's initialize.sh: try to initialize 'master' correctly
[msysgit.git] / share / msysGit / post-install.sh
blob7757b5ac05201600ee92c4fb7860d099edcd514a
1 #!/bin/sh
3 test $# -lt 2 && {
4 echo "Usage: $0 <GIT_INDEX_FILE> <MESSAGE...>"
5 exit 1
8 # bashism
9 set -o pipefail
11 cd / &&
12 (export GIT_INDEX_FILE=$1 &&
13 git diff-files --name-only -z &&
14 git ls-files --exclude-standard --others -z) |
15 git update-index -z --add --remove --stdin &&
16 shift &&
17 git commit -s -m "$*"