Code

Merge branch 'js/runtime-prefix-trace-not-warn'
authorJunio C Hamano <gitster@pobox.com>
Sun, 7 Mar 2010 20:47:15 +0000 (12:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Mar 2010 20:47:15 +0000 (12:47 -0800)
* js/runtime-prefix-trace-not-warn:
  Print RUNTIME_PREFIX warning only when GIT_TRACE is set

exec_cmd.c

index 408e4e55e1c58931444c772d35d23b505bf3e2ea..b2c07c70ce26312d81f499d3acf90dab919f1d24 100644 (file)
@@ -28,7 +28,7 @@ const char *system_path(const char *path)
            !(prefix = strip_path_suffix(argv0_path, BINDIR)) &&
            !(prefix = strip_path_suffix(argv0_path, "git"))) {
                prefix = PREFIX;
-               fprintf(stderr, "RUNTIME_PREFIX requested, "
+               trace_printf("RUNTIME_PREFIX requested, "
                                "but prefix computation failed.  "
                                "Using static fallback '%s'.\n", prefix);
        }