1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-17 14:15:27 +02:00
fugitive/pre-receive.sh

11 lines
332 B
Bash

#!/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