From: Junio C Hamano Date: Thu, 1 Mar 2007 01:01:00 +0000 (-0800) Subject: git-fetch: retire update-local-ref which is not used anymore. X-Git-Tag: v1.5.1-rc1~30^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e6eebbb3ae2f2831fe1319d5acdb6477b8abeadb;p=git.git git-fetch: retire update-local-ref which is not used anymore. Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c index eeee0a5eb..5261bf57f 100644 --- a/builtin-fetch--tool.c +++ b/builtin-fetch--tool.c @@ -468,12 +468,6 @@ int cmd_fetch__tool(int argc, const char **argv, const char *prefix) fclose(fp); return result; } - if (!strcmp("update-local-ref", argv[1])) { - if (argc != 5) - return error("update-local-ref takes 3 args"); - return update_local_ref(argv[2], argv[3], argv[4], - verbose, force); - } if (!strcmp("native-store", argv[1])) { int result; FILE *fp; diff --git a/git-fetch.sh b/git-fetch.sh index f438ac1ef..4a8d8d6ef 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -114,14 +114,6 @@ append_fetch_head () { git-fetch--tool $flags append-fetch-head "$@" } -update_local_ref () { - flags= - test -n "$verbose" && flags="$flags -v" - test -n "$force" && flags="$flags -f" - GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \ - git-fetch--tool $flags update-local-ref "$@" -} - # updating the current HEAD with git-fetch in a bare # repository is always fine. if test -z "$update_head_ok" && test $(is_bare_repository) = false