5c28a8b054
test-svn-fe segfaults when passed a bogus path. Simplify debugging by exiting with a meaningful error message instead. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 lines
312 B
C
19 lines
312 B
C
/*
|
|
* test-svn-fe: Code to exercise the svn import lib
|
|
*/
|
|
|
|
#include "git-compat-util.h"
|
|
#include "vcs-svn/svndump.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
if (argc != 2)
|
|
usage("test-svn-fe <file>");
|
|
if (svndump_init(argv[1]))
|
|
return 1;
|
|
svndump_read(NULL);
|
|
svndump_deinit();
|
|
svndump_reset();
|
|
return 0;
|
|
}
|