config: use git_config_parse_key() in git_config_parse_parameter()
[gitweb.git] / t / test-lib.sh
index 21e4aa2e542a1d7806f33c33e97aa46b104af38d..b021329e03eeef257afb8fb36a40644e000079b5 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" &&