Fix stupid typo in initialize.sh
[msysgit.git] / share / msysGit / initialize.sh
blobeeba933d30979e1117230af8a5c82053aa3b7c39
1 #!/bin/sh
3 # This script initializes /.git from msysgit.git on repo.or.cz
5 test -d /git/.git || {
6 cd /git &&
7 git init &&
8 git config core.autocrlf false &&
9 git add . &&
10 git commit -m "Current revision" &&
11 git remote add -f origin mob@repo.or.cz:/srv/git/git/mingw/4msysgit.git
12 } ||
13 exit
16 test -d /.git || {
17 cd / &&
18 git init &&
19 git config core.autocrlf false &&
20 git ls-files --other --exclude-standard $(sed -n \
21 -e 's/^path = /--exclude=/p' < .gitmodules) -z |
22 git update-index --add -z --stdin &&
23 git commit -m "Current revision" &&
24 git remote add -f origin mob@repo.or.cz:/srv/git/msysgit.git &&
25 git gc