[PATCH] Make the test more shell generic and fix missing Solaris find option
[git.git] / t / t6002-rev-list-bisect.sh
index 6a71820..d0a4ff2 100755 (executable)
@@ -11,8 +11,12 @@ bc_expr()
 {
 bc <<EOF
 scale=1
-define abs(x) { if (x>=0) { return x; } else { return -x; } }
-define floor(x) { save=scale; scale=0; result=x/1; scale=save; return result; }
+define abs(x) {
+       if (x>=0) { return (x); } else { return (-x); }
+}
+define floor(x) {
+       save=scale; scale=0; result=x/1; scale=save; return (result);
+}
 $*
 EOF
 }
@@ -36,7 +40,7 @@ test_bisection_diff()
 }
 
 date >path0
-git-update-cache --add path0
+git-update-index --add path0
 save_tag tree git-write-tree
 on_committer_date "1971-08-16 00:00:00" hide_error save_tag root unique_commit root tree
 on_committer_date "1971-08-16 00:00:01" save_tag l0 unique_commit l0 tree -p root