cvs2git: fix character quoting
[gitweb.git] / cvs2git.c
index 8a76734a021b5bdf76adf92196d5ae72123e7ec5..1adc918f51d668fe818468213f64b5d476148bb3 100644 (file)
--- a/cvs2git.c
+++ b/cvs2git.c
@@ -114,6 +114,8 @@ static void commit(void)
 
                switch (c) {
                case '$':
+               case '\\':
+               case '`':
                        putchar('\\');
                        break;
                case 0 ... 31:
@@ -133,6 +135,8 @@ static void commit(void)
 
        printf("echo $commit > .git/refs/heads/'%s'\n", dst_branch);
 
+       printf("echo 'Committed (to %s):' ; cat .cmitmsg; echo\n", dst_branch);
+
        *date = 0;
        *author = 0;
        *branch = 0;