summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniels@preemptive.research.nokia.com>2006-03-18 23:17:56 +0200
committerDaniel Stone <daniels@preemptive.research.nokia.com>2006-03-18 23:17:56 +0200
commite5699e892be7d33edb70ac849a6b30265d2fc42d (patch)
treed915aa7d851d07d7bb0d13da827e268e492afc09
parent8ae8266148b5e450cbf3782dfb4d78cee7358333 (diff)
Add SVN support.
-rw-r--r--ssh-bleach.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ssh-bleach.c b/ssh-bleach.c
index 6c990b5..562d5d4 100644
--- a/ssh-bleach.c
+++ b/ssh-bleach.c
@@ -47,6 +47,13 @@ int cvs_server (char *line) {
panic ("exec /usr/bin/cvs failed: \"%s\"\n", strerror (errno));
}
+int svn_server (char *line) {
+ if (verbose)
+ printf ("svn -t\n");
+ (void) execl ("/usr/bin/svn", "-t", NULL);
+ panic ("exec /usr/bin/svn failed: \"%s\"\n", strerror (errno));
+}
+
const char bad_chars[] = "\"$%'*;<>?[\\]`|";
char *get_quoted_arg (char *line)
@@ -188,6 +195,7 @@ struct {
int (*command) (char *line);
} commands[] = {
{ "cvs server", cvs_server },
+ { "svn -t", svn_server },
{ "git-receive-pack", git_receive_pack },
{ "git-upload-pack", git_upload_pack },
{ "rsync", rsync },