X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fhowto%2Fupdate-hook-example.txt;h=b7f8d416d65ca1cf17d6348e858a13f6ed72c7fe;hb=65c042d44dc843021f1410f1219104681fdd3469;hp=8b2ec502f4ad6b32c5f4482e7f06fdaf0011de7a;hpb=24cd49f627ab0d313f8f7925e1f6f855563fea43;p=git.git diff --git a/Documentation/howto/update-hook-example.txt b/Documentation/howto/update-hook-example.txt index 8b2ec502f..b7f8d416d 100644 --- a/Documentation/howto/update-hook-example.txt +++ b/Documentation/howto/update-hook-example.txt @@ -1,4 +1,4 @@ -From: Junio C Hamano and Carl Baldwin +From: Junio C Hamano and Carl Baldwin Subject: control access to branches. Date: Thu, 17 Nov 2005 23:55:32 -0800 Message-ID: <7vfypumlu3.fsf@assigned-by-dhcp.cox.net> @@ -76,7 +76,7 @@ case "$1" in if expr "$2" : '0*$' >/dev/null; then info "The branch '$1' is new..." else - # updating -- make sure it is a fast forward + # updating -- make sure it is a fast-forward mb=$(git-merge-base "$2" "$3") case "$mb,$2" in "$2,$mb") info "Update is fast-forward" ;;