if [ -e "$GIT_DIR/description" ]; then
zsig=`cat "$GIT_DIR/description"`
fi
- if [ -z "$zsig" ] || [ "$zsig" = "Unnamed repository; edit this file to name it for gitweb." ]; then
+ if [ -z "$zsig" ] || \
+ [ "$zsig" = "Unnamed repository; edit this file to name it for gitweb." ] || \
+ [ "$zsig" = "Unnamed repository; edit this file 'description' to name the repository." ]; then
zsig=$(basename "$(readlink -f "$GIT_DIR")")
if [ "$zsig" = ".git" ]; then
zsig=$(basename "$(readlink -f "$GIT_DIR/..")")
while read oldrev newrev refname; do
if [ "$oldrev" = "0000000000000000000000000000000000000000" ]; then
# dammit git
- zwrite -c "$class" -i "$(basename "$refname")" -s "$zsig: $refname" -d \
- -m "New branch created."
+ zwrite -c "$class" -i "${instance:-${refname#refs/heads/}}" -s "$zsig: $refname" -d \
+ -m "New branch $refname created, currently at $newrev."
continue
fi
git rev-list --first-parent --reverse "$oldrev..$newrev" | while read rev; do