summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-03-28 20:18:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-28 22:19:17 (GMT)
commitb3065bdc03dd91561e35f91896aec8c64667d1a9 (patch)
tree6afa3a099b1d03ea294aaa87394c2dbbfdd0b699
parent455cf268dbaf227bdbd5e9fbf96525452bcfe44f (diff)
downloadgit-b3065bdc03dd91561e35f91896aec8c64667d1a9.zip
git-b3065bdc03dd91561e35f91896aec8c64667d1a9.tar.gz
git-b3065bdc03dd91561e35f91896aec8c64667d1a9.tar.bz2
config: remove useless assignment
v1.7.9-8-g270a344 (config: stop using config_exclusive_filename) replaced config_exclusive_filename with given_config_file. In one case this resulted in a self-assignment, which is reported by clang as a warning. Remove the useless code. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/config.c b/builtin/config.c
index d41a9bf..33c8820 100644
--- a/builtin/config.c
+++ b/builtin/config.c
@@ -397,8 +397,6 @@ int cmd_config(int argc, const char **argv, const char *prefix)
xstrdup(prefix_filename(prefix,
strlen(prefix),
given_config_file));
- else
- given_config_file = given_config_file;
}
if (respect_includes == -1)