This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:subversion [2017/02/26 13:03] – [Checkout Repository and Overwrite Files] office | fuss:subversion [2018/12/11 21:34] – [Ignore Files] office | ||
---|---|---|---|
Line 130: | Line 130: | ||
* the dot '' | * the dot '' | ||
+ | ====== Remove all Local Changes and Additional Files ====== | ||
+ | |||
+ | To remove all local changes recursively: | ||
+ | <code bash> | ||
+ | svn revert -R . | ||
+ | svn status --no-ignore | grep -E ' | ||
+ | svn update --force | ||
+ | </ | ||
+ | |||
+ | In case you do not wish to remove files that are not in the subversion repository, then do not issue the '' | ||
+ | |||
+ | ====== Ignore Files ====== | ||
+ | |||
+ | The following command will globally ignore files matching the patterns '' | ||
+ | |||
+ | <code bash> | ||
+ | svn propset svn: | ||
+ | *.pem | ||
+ | *.key | ||
+ | *.crt" . | ||
+ | </ | ||
+ | |||
+ | Alternatively, | ||
+ | <code bash> | ||
+ | svn propset svn:ignore " | ||
+ | *.pem | ||
+ | *.key | ||
+ | *.crt" . | ||
+ | </ | ||
+ | within a directory will make SVN ignore the files in that directory. | ||
+ | |||
+ | ====== Running Svnserve on Debian ====== | ||
+ | |||
+ | The '' | ||
+ | |||
+ | First create a user and group that '' | ||
+ | <code bash> | ||
+ | useradd svnserve | ||
+ | </ | ||
+ | |||
+ | Then the service file is created at ''/ | ||
+ | < | ||
+ | [Unit] | ||
+ | Description=Subversion protocol daemon | ||
+ | After=syslog.target network.target | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | RuntimeDirectory=svnserve | ||
+ | PIDFile=/ | ||
+ | EnvironmentFile=/ | ||
+ | ExecStart=/ | ||
+ | User=svnserve | ||
+ | Group=svnserve | ||
+ | KillMode=control-group | ||
+ | Restart=on-failure | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | Alias=svnserve.service | ||
+ | </ | ||
+ | |||
+ | where: | ||
+ | * '' | ||
+ | |||
+ | Next, the defaults file for Debian is created at ''/ | ||
+ | < | ||
+ | # svnserve options | ||
+ | DAEMON_ARGS=" | ||
+ | </ | ||
+ | |||
+ | where: | ||
+ | * ''/ | ||
+ | |||
+ | The ''/ | ||
+ | <code bash> | ||
+ | mkdir / | ||
+ | </ | ||
+ | |||
+ | and granted permission to the user and group specified in the system file: | ||
+ | <code bash> | ||
+ | chown -R svnserve: | ||
+ | </ | ||
+ | |||
+ | A matching logrotate file should be created at ''/ | ||
+ | < | ||
+ | / | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 14 | ||
+ | compress | ||
+ | notifempty | ||
+ | create 640 svnserve svnserve | ||
+ | sharedscripts | ||
+ | postrotate | ||
+ | if / | ||
+ | / | ||
+ | fi; | ||
+ | endscript | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Now, systemctl is instructed to reload the daemon file with: | ||
+ | <code bash> | ||
+ | systemctl daemon-reload | ||
+ | </ | ||
+ | |||
+ | and finally '' | ||
+ | <code bash> | ||
+ | systemctl start svnserve | ||
+ | </ | ||
+ | |||
+ | ====== Fixing Bad Gateway Responses ====== | ||
+ | |||
+ | When attempting an SVN '' | ||
+ | < | ||
+ | svn: E175002: Commit failed (details follow): | ||
+ | svn: E175002: Unexpected HTTP status 502 'Bad Gateway' | ||
+ | </ | ||
+ | |||
+ | to address the issue, add to the Apache configuration file: | ||
+ | < | ||
+ | RequestHeader edit Destination ^https http early | ||
+ | </ | ||
+ | |||
+ | and restart Apache. | ||
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.