~sircmpwn/shit

shit/init -rwxr-xr-x 452 bytes
4bd181c7Drew DeVault Remove obsolete TODO comment 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -eu
SHIT_PATH=$(dirname "$0")
. $SHIT_PATH/common.sh

for dir in branches info objects/info objects/pack refs/heads refs/tags
do
	mkdir -p "$GIT_DIR"/$dir
done

cat <<EOF >"$GIT_DIR"/config
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
EOF

echo "Unnamed repository; edit this file 'description' to name the repository." \
	>"$GIT_DIR"/description

echo "ref: refs/heads/master" >"$GIT_DIR"/HEAD