mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
![Jonathan Nieder](/assets/img/avatar_default.png)
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;
|
|
}
|