Changeset 2503


Ignore:
Timestamp:
Oct 13, 2009, 12:28:03 PM (15 years ago)
Author:
broder
Message:

In the submodule update hook, reject pushes to anything but branches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-hooks/sub/update

    r2499 r2503  
    2222
    2323case "$ref" in
    24     refs/tags/*)
    25         echo "*** Pushing tags to this repository is not allowed" >&2
     24    refs/heads/*)
     25        ;;
     26    *)
     27        echo "*** Pushing non-branches to this repository is not allowed" >&2
    2628        exit 1
    2729        ;;
Note: See TracChangeset for help on using the changeset viewer.