@matheusbsbs / matheus-bagliano / commits / 2cf3e3ac02
Fork 0

git-svn: match SVN 1.5 behaviour of info' on unknown item

Previously 'git svn info unknown-file' only announced its failure (in the SVN 1.4 style, "not a versioned resource"), and exited successfully. It is desirable to actually exit with failure, so change the code to exit(1) under this condition. Since that is already halfway SVN 1.5 compatibility, also change the error output to match 1.5. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Acked-by: Eric Wong <normalperson@yhbt.net>

Thomas Rast committed Aug 29, 2008 at 15:42 UTC 2cf3e3ac02c42cf0ba9299589db644beb395c4c5
1 file changed +2 -2
git-svn.perl
+2 -2
@@ -832,8 +832,8 @@ sub cmd_info {
832 my ($file_type, $diff_status) = find_file_type_and_diff_status($path);
833
834 if (!$file_type && !$diff_status) {
835 - print STDERR "$path: (Not a versioned resource)\n\n";
836 - return;
835 + print STDERR "svn: '$path' is not under version control\n";
836 + exit 1;
837 }
838
839 my ($url, $rev, $uuid, $gs) = working_head_info('HEAD');