Skip to content

Commit

Permalink
git-fetch: retire update-local-ref which is not used anymore.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Mar 1, 2007
1 parent c7d68c8 commit e6eebbb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions builtin-fetch--tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6eebbb

Please sign in to comment.