mirror of
https://github.com/git/git
synced 2024-10-30 03:13:24 +00:00
vcs-svn: reset first_commit_done in fast_export_init
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>
This commit is contained in:
parent
e3ed67a3d5
commit
c5bcbcdcfa
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ static int init_postimage(void)
|
||||||
|
|
||||||
void fast_export_init(int fd)
|
void fast_export_init(int fd)
|
||||||
{
|
{
|
||||||
|
first_commit_done = 0;
|
||||||
if (buffer_fdinit(&report_buffer, fd))
|
if (buffer_fdinit(&report_buffer, fd))
|
||||||
die_errno("cannot read from file descriptor %d", fd);
|
die_errno("cannot read from file descriptor %d", fd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue