You can:
git clone http://your-server-name/repository-name.git
appsettings.json
file.RepositoryPath
key with the new path.This feature was removed because the repository is linked to the database, and a simple switch could cause issues. If there is a strong reason to change the repository folder, it’s best to do this while the server is not running and make the change consciously in the appsettings.json
file.
This is a common issue for Windows 8 users. To resolve it:
If you experience issues while using SSL and pushing large repositories, increase the variable sizes as described above in the “Cloning Error - RPC failed” section. If that doesn’t help, apply the following Microsoft patch: (KB2634328).
To resolve these issues, run the following commands:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
This error occurs when the git client doesn’t receive a proper git stream as a response from the server. This typically indicates a server-side issue.
To diagnose the error, check the log file located at App_Data/Bonobo.Git.Server.Errors.log
.
This error often relates to the size of the request. To resolve this, try increasing the following values:
On your client, run:
git config http.postBuffer [desired size]
, try 524288000
(500MB).
In your web.config
, increase:
<requestLimits maxAllowedContentLength="[desired size]">
, try 1073741824
(1GB).
Also in web.config
, increase:
<httpRuntime maxRequestLength="[desired size]">
, try 1024000
(1GB).
Note: On IIS 8.0, maxRequestLength
may not need to be limited. If you experience issues, try removing this line from the web.config
.
If you’re encountering issues while using SSL and pushing large repositories, follow the steps described in the “Cloning Error - RPC failed” section to increase the size limits.
If the problem persists, apply the Microsoft patch: (KB2634328).
To resolve this issue, execute the following commands in the command prompt:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
This will unlock the configuration sections for handlers and modules in IIS 8.
Bonobo provides the following environment variables to help manage access via git hooks:
AUTH_USER
: The username used to log in. This variable will be empty if the operation (e.g., clone, push, pull) was done anonymously.REMOTE_USER
: Same as AUTH_USER
.AUTH_USER_TEAMS
: A comma-separated list containing all the teams the user belongs to.AUTH_USER_ROLES
: A comma-separated list containing all the roles assigned to the user.AUTH_USER_DISPLAYNAME
: This displays the user’s full name (Given Name + Surname), if available. Otherwise, it will display the username.Important Note: Due to the way HTTP basic authentication works, if anonymous operations (such as push or pull) are enabled, the variables mentioned above will always be empty. This means that you won’t be able to retrieve the user details for anonymous requests.