grep: enable recurse-submodules to work on <tree> objects
[gitweb.git] / t / test-lib.sh
index b859db61ac0d034b8f2c14cea4a960a1a3d9f576..cde7fc7fcf355d04708126980d099df820cd00ce 100644 (file)
@@ -809,7 +809,14 @@ then
                return;
 
                base=$(basename "$1")
-               symlink_target=$GIT_BUILD_DIR/$base
+               case "$base" in
+               test-*)
+                       symlink_target="$GIT_BUILD_DIR/t/helper/$base"
+                       ;;
+               *)
+                       symlink_target="$GIT_BUILD_DIR/$base"
+                       ;;
+               esac
                # do not override scripts
                if test -x "$symlink_target" &&
                    test ! -d "$symlink_target" &&