diff options
Diffstat (limited to 'rerere.c')
| -rw-r--r-- | rerere.c | 7 | 
1 files changed, 3 insertions, 4 deletions
@@ -207,11 +207,11 @@ static int handle_path(unsigned char *sha1, struct rerere_io *io, int marker_siz  			strbuf_reset(&one);  			strbuf_reset(&two);  		} else if (hunk == RR_SIDE_1) -			strbuf_addstr(&one, buf.buf); +			strbuf_addbuf(&one, &buf);  		else if (hunk == RR_ORIGINAL)  			; /* discard */  		else if (hunk == RR_SIDE_2) -			strbuf_addstr(&two, buf.buf); +			strbuf_addbuf(&two, &buf);  		else  			rerere_io_putstr(buf.buf, io);  		continue; @@ -492,8 +492,7 @@ static int update_paths(struct string_list *update)  	}  	if (!status && active_cache_changed) { -		if (write_cache(fd, active_cache, active_nr) || -		    commit_locked_index(&index_lock)) +		if (write_locked_index(&the_index, &index_lock, COMMIT_LOCK))  			die("Unable to write new index file");  	} else if (fd >= 0)  		rollback_lock_file(&index_lock);  | 
