Skip to content

Commit

Permalink
vcs-svn: reset first_commit_done in fast_export_init
Browse files Browse the repository at this point in the history
first_commit_done has zero as a default value, but it
is not reset back to zero in fast_export_init.

Reset it back to zero so that each export will have
proper initial state.

Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
  • Loading branch information
divanorama authored and jrn committed Jun 23, 2011
1 parent e3ed67a commit c5bcbcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vcs-svn/fast_export.c
Expand Up @@ -31,6 +31,7 @@ static int init_postimage(void)

void fast_export_init(int fd)
{
first_commit_done = 0;
if (buffer_fdinit(&report_buffer, fd))
die_errno("cannot read from file descriptor %d", fd);
}
Expand Down

0 comments on commit c5bcbcd

Please sign in to comment.