Skip to content

Commit 4adf7e4

Browse files
dschoderrickstolee
authored andcommitted
Merge pull request #321 from microsoft/allow-upgrade-gfw-in-microsoft/git
Allow `git upgrade-git-for-windows`
2 parents b08111c + 4c3fb01 commit 4adf7e4

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

builtin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ int cmd_tag(int argc, const char **argv, const char *prefix);
229229
int cmd_tar_tree(int argc, const char **argv, const char *prefix);
230230
int cmd_unpack_file(int argc, const char **argv, const char *prefix);
231231
int cmd_unpack_objects(int argc, const char **argv, const char *prefix);
232-
int cmd_update(int argc, const char **argv, const char *prefix);
233232
int cmd_update_index(int argc, const char **argv, const char *prefix);
234233
int cmd_update_ref(int argc, const char **argv, const char *prefix);
235234
int cmd_update_server_info(int argc, const char **argv, const char *prefix);

git.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,6 @@ static struct cmd_struct commands[] = {
679679
{ "tag", cmd_tag, RUN_SETUP | DELAY_PAGER_CONFIG },
680680
{ "unpack-file", cmd_unpack_file, RUN_SETUP | NO_PARSEOPT },
681681
{ "unpack-objects", cmd_unpack_objects, RUN_SETUP | NO_PARSEOPT },
682-
{ "update", cmd_update },
683-
{ "update-git-for-windows", cmd_update },
684682
{ "update-index", cmd_update_index, RUN_SETUP },
685683
{ "update-ref", cmd_update_ref, RUN_SETUP },
686684
{ "update-server-info", cmd_update_server_info, RUN_SETUP },

help.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -745,19 +745,3 @@ NORETURN void help_unknown_ref(const char *ref, const char *cmd,
745745
string_list_clear(&suggested_refs, 0);
746746
exit(1);
747747
}
748-
749-
int cmd_update(int argc, const char **argv, const char *prefix)
750-
{
751-
const char * const usage[] = {
752-
N_("git update-git-for-windows [<options>]\n"
753-
"\t(not supported in this build of Git for Windows)"),
754-
NULL
755-
};
756-
struct option options[] = {
757-
OPT_END()
758-
};
759-
760-
argc = parse_options(argc, argv, prefix, options, usage, 0);
761-
762-
die(_("git %s is not supported in VFSforGit"), argv[0]);
763-
}

t/t0402-block-command-on-gvfs.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,4 @@ test_expect_success 'test gc --auto succeeds when disabled via config' '
3636
git gc --auto
3737
'
3838

39-
test_expect_success 'update-git-for-windows disabled' '
40-
test_must_fail git update 2>out &&
41-
test_i18ngrep VFS out &&
42-
test_must_fail git update-git-for-windows 2>out &&
43-
test_i18ngrep VFS out
44-
'
45-
4639
test_done

0 commit comments

Comments
 (0)