astextplain: Try to workaround textconv vs symlinks problem on win32
[msysgit/kirr.git] / share / msysGit / post-install.sh
blob7110a8eda2b09b0dfcaadb780e39251d23d5e42e
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 --ignore-submodules -z &&
14 git ls-files --exclude-standard --others -z) |
15 git update-index -z --add --remove --stdin &&
16 shift &&
17 git commit -s -m "$*"