{"thread":{"id":"4058","subject":"[PATCH] builtin-push: --all and --tags _are_ explicit refspecs","startedAt":"2006-05-04T21:18:14Z","lastAt":"2006-05-04T21:18:14Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"19524","messageId":"Pine.LNX.4.63.0605042317560.11836@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"4058","inReplyTo":null,"subject":"[PATCH] builtin-push: --all and --tags _are_ explicit refspecs","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-05-04T21:18:14Z","receivedAt":"2006-05-04T21:18:14Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\n... so do not get refspecs from remotes/* or the config if one of them\nwas specified.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n\n---\n\n builtin-push.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\n42859edd0156479786e5bc4184e462a0307a67eb\ndiff --git a/builtin-push.c b/builtin-push.c\nindex 06d06ff..e530022 100644\n--- a/builtin-push.c\n+++ b/builtin-push.c\n@@ -72,7 +72,7 @@ static int get_remotes_uri(const char *r\n {\n \tint n = 0;\n \tFILE *f = fopen(git_path(\"remotes/%s\", repo), \"r\");\n-\tint has_explicit_refspec = refspec_nr;\n+\tint has_explicit_refspec = refspec_nr || all || tags;\n \n \tif (!f)\n \t\treturn -1;\n@@ -144,7 +144,7 @@ static int get_config_remotes_uri(const \n \tconfig_repo = repo;\n \tconfig_current_uri = 0;\n \tconfig_uri = uri;\n-\tconfig_get_refspecs = !refspec_nr;\n+\tconfig_get_refspecs = !(refspec_nr || all || tags);\n \n \tgit_config(get_remote_config);\n \treturn config_current_uri;\n-- \n1.3.2.gec86-dirty\n"}]}