Add "update-cache --refresh" to git-pull-script to make sure
[gitweb.git] / commit-tree.c
index 93f3a579916ce46649bd16e3e1cfa16fdaaa9ebb..cbb7d12a8682992584fe9fc717b6f95666b1ab73 100644 (file)
@@ -83,11 +83,11 @@ static void finish_buffer(char *tag, char **bufp, unsigned int *sizep)
 static void remove_special(char *p)
 {
        char c;
-       char *dst = p;
+       char *dst = p, *src = p;
 
        for (;;) {
-               c = *p;
-               p++;
+               c = *src;
+               src++;
                switch(c) {
                case '\n': case '<': case '>':
                        continue;