commit - 76b9ee435825630581cb65df420932485607cba5
commit + 13b2084e37bc6c16431402e84d4d0f40dad21ada
blob - af38ca1d5e925d9e9b1075a3eedd2f72cf292366
blob + a6398ccb64350775f2db703c7520234c180aefd1
--- gotadmin/gotadmin.c
+++ gotadmin/gotadmin.c
}
got_gotconfig_get_remotes(&nremotes, &remotes, gotconfig);
for (i = 0; i < nremotes; i++) {
- printf("remote \"%s\": %s\n", remotes[i].name,
- remotes[i].fetch_url);
+ const char *fetch_url = remotes[i].fetch_url;
+ const char *send_url = remotes[i].send_url;
+ if (strcmp(fetch_url, send_url) == 0) {
+ printf("remote \"%s\": %s\n", remotes[i].name,
+ remotes[i].fetch_url);
+ } else {
+ printf("remote \"%s\" (fetch): %s\n",
+ remotes[i].name, remotes[i].fetch_url);
+ printf("remote \"%s\" (send): %s\n",
+ remotes[i].name, remotes[i].send_url);
+ }
}
}