| 
                Last change
                  on this file since 2530 was
                  2500,
                  checked in by broder, 16 years ago
           | 
        
        
          | 
               
Replace the superrepo hooks with an update hook that rejects all 
pushes. 
 
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            592 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | ref="$1" | 
|---|
| 4 | oldrev="$2" | 
|---|
| 5 | newrev="$3" | 
|---|
| 6 |  | 
|---|
| 7 | # --- Safety check | 
|---|
| 8 |  | 
|---|
| 9 | if [ -z "$GIT_DIR" ]; then | 
|---|
| 10 |         echo "Don't run this script from the command line." >&2 | 
|---|
| 11 |         echo " (if you want, you could supply GIT_DIR then run" >&2 | 
|---|
| 12 |         echo "  $0 <ref> <oldrev> <newrev>)" >&2 | 
|---|
| 13 |         exit 1 | 
|---|
| 14 | fi | 
|---|
| 15 |  | 
|---|
| 16 | if [ -z "$ref" -o -z "$oldrev" -o -z "$newrev" ]; then | 
|---|
| 17 |         echo "Usage: $0 <ref> <oldrev> <newrev>" >&2 | 
|---|
| 18 |         exit 1 | 
|---|
| 19 | fi | 
|---|
| 20 |  | 
|---|
| 21 | # --- Disallow all pushes | 
|---|
| 22 |  | 
|---|
| 23 | echo "*** Pushing to the superrepo is not allowed" >&2 | 
|---|
| 24 | echo "***" >&2 | 
|---|
| 25 | echo "*** If you would like to update the superrepo, use remctl" >&2 | 
|---|
| 26 | exit 1 | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.