summaryrefslogtreecommitdiff
path: root/pre-receive.sh
blob: 63bc870524d5f88bdf1a758f04a8aa208ae9502d (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

blog_url=`git config --get fugitive.blog-url`
if [ "$blog_url" = "" ]; then
  echo -n "[fugitive] ERROR: git config fugitive.blog-url is empty and" >&2
  echo -n " should not be, please set it with " >&2
  echo -n '`git config fugitive.blog-url "<url>"` ' >&2
  echo "on the remote repository, aborting." >&2
  exit 1
fi