3 . git-sh-setup-script || die "Not a git archive"
7 headref=$(readlink "$GIT_DIR/HEAD" | sed -e 's|^refs/heads/||')
8 git-rev-parse --symbolic --all |
9 sed -ne 's|^refs/heads/||p' |
13 if test "$headref" = "$ref"
28 rev=$(git-rev-parse --revs-only --verify "$head") || exit
30 [ -e "$GIT_DIR/refs/heads/$branchname" ] && die "$branchname already exists"
32 echo $rev > "$GIT_DIR/refs/heads/$branchname"