git-fetch: retire update-local-ref which is not used anymore.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 28, 2007 at 17:01 UTC
e6eebbb3ae2f2831fe1319d5acdb6477b8abeadb
2 files changed
-14
builtin-fetch--tool.c
-6
@@ -468,12 +468,6 @@ int cmd_fetch__tool(int argc, const char **argv, const char *prefix)
468
fclose(fp);
469
return result;
470
}
471
- if (!strcmp("update-local-ref", argv[1])) {
472
- if (argc != 5)
473
- return error("update-local-ref takes 3 args");
474
- return update_local_ref(argv[2], argv[3], argv[4],
475
- verbose, force);
476
- }
471
if (!strcmp("native-store", argv[1])) {
472
int result;
473
FILE *fp;
git-fetch.sh
-8
@@ -114,14 +114,6 @@ append_fetch_head () {
114
git-fetch--tool $flags append-fetch-head "$@"
115
}
116
117
-update_local_ref () {
118
- flags=
119
- test -n "$verbose" && flags="$flags -v"
120
- test -n "$force" && flags="$flags -f"
121
- GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
122
- git-fetch--tool $flags update-local-ref "$@"
123
-}
124
-
117
# updating the current HEAD with git-fetch in a bare
118
# repository is always fine.
119
if test -z "$update_head_ok" && test $(is_bare_repository) = false