File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/org/casbin/util Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,16 @@ public static String getCliVersion() throws IOException {
115115 }
116116 }
117117 } else {
118+ if (!commitCount .isEmpty ()){
119+ System .out .println ("!commitCount.isEmpty()" );
120+ }
121+ if (!commitCount .equals ("0" )){
122+ System .out .println ("!commitCount.equals(\" 0\" " );
123+ }
124+ if (!commitCount .equals ("Unknown" )){
125+ System .out .println ("!commitCount.equals(\" Unknown\" )" );
126+ }
127+
118128 if (!commitCount .isEmpty () && !commitCount .equals ("0" ) && !commitCount .equals ("Unknown" )) {
119129 System .out .println ("commitCount if in" );
120130 if (matcher .find ()) {
@@ -126,6 +136,7 @@ public static String getCliVersion() throws IOException {
126136 }
127137 }
128138 System .out .println ("after tag: " + tag );
139+ System .out .println ("commitCount: " + commitCount );
129140 if ((commitCount .isEmpty () || commitCount .equals ("0" ) || commitCount .equals ("Unknown" )) && (!tag .isEmpty () && !tag .equals ("Unknown" ))) {
130141 return tag ;
131142 }
You can’t perform that action at this time.
0 commit comments