Changeset 2539 for trunk/scripts/git-hooks
- Timestamp:
- Nov 12, 2009, 10:46:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-hooks/sub/update
r2503 r2539 19 19 fi 20 20 21 # --- Disallow pushing to the branches for pockets 22 23 pocket_to_git() { 24 local pocket git 25 pocket="$1" 26 git="$(invirt-getconf "git.pockets.$pocket.git" 2>/dev/null)" 27 if [ $? != 0 ]; then 28 git="$pocket" 29 fi 30 echo "$git" 31 } 32 33 for pocket in $(invirt-getconf -l git.pockets); do 34 if [ "$ref" = "refs/heads/$(pocket_to_git "$pocket")" ]; then 35 echo "*** Pushing to a pocket branch in this repository is not allowed" >&2 36 exit 1 37 fi 38 done 39 21 40 # --- Disallow pushing tags 22 41
Note: See TracChangeset
for help on using the changeset viewer.