<p dir="ltr">Can you describe the actual circumstances that lead to a failure and the nature of it? Lots of us use git-svn without issue today...</p>
<div class="gmail_quote">On Nov 6, 2012 7:28 AM, "pravic" <<a href="mailto:ehysta@gmail.com">ehysta@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This prevents cmake fail on git-svn based repositories.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D104" target="_blank">http://llvm-reviews.chandlerc.com/D104</a><br>
<br>
Files:<br>
  cmake/modules/VersionFromVCS.cmake<br>
<br>
Index: cmake/modules/VersionFromVCS.cmake<br>
===================================================================<br>
--- cmake/modules/VersionFromVCS.cmake<br>
+++ cmake/modules/VersionFromVCS.cmake<br>
@@ -28,7 +28,7 @@<br>
                       TIMEOUT 5<br>
                       RESULT_VARIABLE git_result<br>
                       OUTPUT_VARIABLE git_output)<br>
-      if( git_result EQUAL 0 )<br>
+      if( (git_result EQUAL 0) AND NOT (git_output STREQUAL "") )<br>
         string(REGEX MATCH r[0-9]+ git_svn_rev ${git_output})<br>
         string(LENGTH "${git_svn_rev}" rev_length)<br>
         math(EXPR rev_length "${rev_length}-1")<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div>