logo

shit

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/mirror/shit.git

init (452B)


  1. #!/bin/sh -eu
  2. SHIT_PATH=$(dirname "$0")
  3. . $SHIT_PATH/common.sh
  4. for dir in branches info objects/info objects/pack refs/heads refs/tags
  5. do
  6. mkdir -p "$GIT_DIR"/$dir
  7. done
  8. cat <<EOF >"$GIT_DIR"/config
  9. [core]
  10. repositoryformatversion = 0
  11. filemode = true
  12. bare = false
  13. logallrefupdates = true
  14. EOF
  15. echo "Unnamed repository; edit this file 'description' to name the repository." \
  16. >"$GIT_DIR"/description
  17. echo "ref: refs/heads/master" >"$GIT_DIR"/HEAD