You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

add-indexed-branch.sh 992B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # --------------------------------------------------------------------------
  3. # This is for Lucene search integration.
  4. #
  5. # Allows you to add an indexed branch specification to the repository config
  6. # for all matching repositories in the specified folder.
  7. #
  8. # All repositories are included unless excluded using a --skip parameter.
  9. # --skip supports simple wildcard fuzzy matching however only 1 asterisk is
  10. # allowed per parameter.
  11. #
  12. # Always use forward-slashes for the path separator in your parameters!!
  13. #
  14. # Set FOLDER to the server's git.repositoriesFolder
  15. # Set BRANCH ("default" or fully qualified ref - i.e. refs/heads/master)
  16. # Set EXCLUSIONS for any repositories that you do not want to change
  17. # --------------------------------------------------------------------------
  18. FOLDER=data/git
  19. EXCLUSIONS="--skip test.git --skip group/test*"
  20. BRANCH=default
  21. java -cp gitblit.jar:"ext/*" com.gitblit.AddIndexedBranch --repositoriesFolder "$FOLDER" --branch "$BRANCH" "$EXCLUSIONS"