remote.c: return upstream name from stat_tracking_info
[gitweb.git] / builtin / for-each-ref.c
index 18d209bc9a2c49909d891a5190e51f2dd0ea9156..92bd2b26654262da24523dd5f98f3741df64de1e 100644 (file)
@@ -716,7 +716,7 @@ static void populate_value(struct refinfo *ref)
                                char buf[40];
 
                                if (stat_tracking_info(branch, &num_ours,
-                                                      &num_theirs) != 1)
+                                                      &num_theirs, NULL))
                                        continue;
 
                                if (!num_ours && !num_theirs)
@@ -738,7 +738,7 @@ static void populate_value(struct refinfo *ref)
                                assert(branch);
 
                                if (stat_tracking_info(branch, &num_ours,
-                                                       &num_theirs) != 1)
+                                                       &num_theirs, NULL))
                                        continue;
 
                                if (!num_ours && !num_theirs)