aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/readme
blob: b3c34f748f964fae14837c1c037304269b1d3d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env sh

if [ -f "$1/config" ]; then
  cd "$1" || exit
  case "$2" in
    "md")
      git config cgit.readme "main:README.md"
      ;;
    "adoc")
      git config cgit.readme "main:README.adoc"
      ;;
    *)
      echo "no idea what you're talking about. md | adoc"
      ;;
  esac
fi