10 | git.repositoriesFolder/projecta/project.mkd 11 | git.repositoriesFolder/projectb/project.mkd 12 |13 | -------------------------------------------------------------------------------- /src/main/distrib/data/gitblit.properties: -------------------------------------------------------------------------------- 1 | # 2 | # GITBLIT.PROPERTIES 3 | # 4 | # Define your custom settings in this file and/or include settings defined in 5 | # other properties files. 6 | # 7 | 8 | # Include Gitblit's 'defaults.properties' within your configuration. 9 | # 10 | # NOTE: Gitblit will not automatically reload "included" properties. Gitblit 11 | # only watches the 'gitblit.properties' file for modifications. 12 | # 13 | # Paths may be relative to the ${baseFolder} or they may be absolute. 14 | # 15 | # COMMA-DELIMITED 16 | # SINCE 1.7.0 17 | include = defaults.properties 18 | 19 | # 20 | # Define your overrides or custom settings below 21 | # 22 | -------------------------------------------------------------------------------- /src/main/distrib/data/groovy/.gitignore: -------------------------------------------------------------------------------- 1 | /grape 2 | -------------------------------------------------------------------------------- /src/main/distrib/data/projects.conf: -------------------------------------------------------------------------------- 1 | [project "main"] 2 | title = Main Repositories 3 | description = main group of repositories -------------------------------------------------------------------------------- /src/main/distrib/data/projects_ja.conf: -------------------------------------------------------------------------------- 1 | #このファイルは、他の翻訳ファイルと違いこのファイル名のままでは動作しない。 2 | #_ja は便宜上付けている名前で、projects.conf に改名し、既存の projects.conf と置き換えて初めて動作する。 3 | [project "main"] 4 | title = メインリポジトリ 5 | description = 共有リポジトリ群 6 | -------------------------------------------------------------------------------- /src/main/distrib/data/users.conf: -------------------------------------------------------------------------------- 1 | [user "admin"] 2 | password = admin 3 | role = "#admin" 4 | role = "#notfederated" 5 | -------------------------------------------------------------------------------- /src/main/distrib/linux/add-indexed-branch.sh: -------------------------------------------------------------------------------- 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" 22 | -------------------------------------------------------------------------------- /src/main/distrib/linux/authority.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | java -cp "gitblit.jar:ext/*" com.gitblit.authority.GitblitAuthority --baseFolder data 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/gitblit-stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data --stop 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/gitblit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo cp service-centos.sh /etc/init.d/gitblit 3 | sudo chkconfig --add gitblit 4 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-fedora.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -x 2 | # This script installs Gitblit on a system running under systemd. 3 | # The script assumes the server is running as user giblit 4 | 5 | # First create a file with the default settings 6 | cat > /tmp/gitblit.defaults << EOF 7 | GITBLIT_PATH=/opt/gitblit 8 | GITBLIT_BASE_FOLDER=/opt/gitblit/data 9 | GITBLIT_HTTP_PORT=0 10 | GITBLIT_HTTPS_PORT=8443 11 | EOF 12 | # Create a systemd service file 13 | cat > /tmp/gitblit.service << EOF 14 | [Unit] 15 | Description=Gitblit managing, viewing, and serving Git repositories. 16 | After=network.target 17 | 18 | [Service] 19 | User=gitblit 20 | Group=gitblit 21 | Environment="ARGS=-server -Xmx1024M -Djava.awt.headless=true -cp" 22 | EnvironmentFile=-/etc/sysconfig/gitblit 23 | WorkingDirectory=/opt/gitblit 24 | ExecStart=/usr/bin/java \$ARGS gitblit.jar:ext/* com.gitblit.GitBlitServer --httpsPort \$GITBLIT_HTTPS_PORT --httpPort \$GITBLIT_HTTP_PORT --baseFolder \$GITBLIT_BASE_FOLDER --dailyLogFile 25 | ExecStop=/usr/bin/java \$ARGS gitblit.jar:ext/* com.gitblit.GitBlitServer --baseFolder \$GITBLIT_BASE_FOLDER --stop 26 | 27 | [Install] 28 | WantedBy=multi-user.target 29 | EOF 30 | 31 | # Finally copy the files to the destination and register the systemd unit. 32 | sudo sh -c "cp /tmp/gitblit.defaults /etc/sysconfig/gitblit && cp /tmp/gitblit.service /etc/systemd/system/" 33 | sudo sh -c "systemctl daemon-reload && systemctl enable gitblit.service && systemctl start gitblit.service" 34 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-freebsd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo cp service-freebsd.sh /usr/local/etc/rc.d/gitblit 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo cp service-ubuntu.sh /etc/init.d/gitblit 3 | sudo update-rc.d gitblit defaults 4 | -------------------------------------------------------------------------------- /src/main/distrib/linux/java-proxy-config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # To set the proxy configuration, specify the following host name and port 4 | #PROXY_HOST= 5 | #PROXY_PORT= 6 | 7 | # To exclude any hosts from proxy configuration such that they directly accessed by Gitblit without passing through the proxy server, append the host name to the following variable using "|" as the separator 8 | NON_PROXY_HOSTS="localhost|127.0.0.*|*.local|192.168.*.*|10.193.*.*" 9 | 10 | ### The following should not need to be modified 11 | 12 | JAVA_PROXY_CONFIG="" 13 | 14 | if [ -n "${PROXY_HOST}" -a -n "${PROXY_PORT}" ]; then 15 | 16 | JAVA_PROXY_CONFIG=" -DproxySet=true -Dhttp.proxyHost=${PROXY_HOST} -Dhttp.proxyPort=${PROXY_PORT} -Dhttps.proxyHost=${PROXY_HOST} -Dhttps.proxyPort=${PROXY_PORT} -Dftp.proxyHost=${PROXY_HOST} -Dftp.proxyPort=${PROXY_PORT} " 17 | fi 18 | 19 | if [ -n "${PROXY_HOST}" -a -n "${PROXY_PORT}" -a -n "${NON_PROXY_HOSTS}" ]; then 20 | 21 | JAVA_PROXY_CONFIG="${JAVA_PROXY_CONFIG} -Dhttp.nonProxyHosts=\"${NON_PROXY_HOSTS}\" -Dftp.nonProxyHosts=\"${NON_PROXY_HOSTS}\" " 22 | fi 23 | 24 | export JAVA_PROXY_CONFIG 25 | 26 | -------------------------------------------------------------------------------- /src/main/distrib/linux/migrate-tickets.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # -------------------------------------------------------------------------- 3 | # This is for migrating Tickets from one service to another. 4 | # 5 | # usage: 6 | # 7 | # migrate-tickets.sh