Code

branch: warn and refuse to set a branch as a tracking branch of itself.
[git.git] / transport-helper.c
index 6ece0d9875652e5d648be7e18ddf2084c564fc12..ca8fa92e638e2589e2b6b8ffbe21ac824b5274a5 100644 (file)
@@ -273,7 +273,7 @@ static void standard_options(struct transport *t)
        char buf[16];
        int n;
        int v = t->verbose;
-       int no_progress = v < 0 || (!t->progress && !isatty(1));
+       int no_progress = v < 0 || (!t->progress && !isatty(2));
 
        set_helper_option(t, "progress", !no_progress ? "true" : "false");