@@ -55,36 +55,6 @@ private static void AppMain(object o)
55
55
// Write the start and version events
56
56
context . Trace2 . Start ( context . ApplicationPath , args ) ;
57
57
58
- //
59
- // Git Credential Manager's executable used to be named "git-credential-manager-core" before
60
- // dropping the "-core" suffix. In order to prevent "helper not found" errors for users who
61
- // haven't updated their configuration, we include either a 'shim' or symlink with the old name
62
- // that print warning messages about using the old name, and then continue execution of GCM.
63
- //
64
- // On Windows the shim is an exact copy of the main "git-credential-manager.exe" executable
65
- // with the old name. We inspect argv[0] to see which executable we are launched as.
66
- //
67
- // On UNIX systems we do the same check, except instead of a copy we use a symlink.
68
- //
69
- string appPath = context . ApplicationPath ;
70
- if ( ! string . IsNullOrWhiteSpace ( appPath ) )
71
- {
72
- // Trim any (.exe) file extension if we're on Windows
73
- // Note that in some circumstances (like being called by Git when config is set
74
- // to just `helper = manager-core`) we don't always have ".exe" at the end.
75
- if ( PlatformUtils . IsWindows ( ) && appPath . EndsWith ( ".exe" , StringComparison . OrdinalIgnoreCase ) )
76
- {
77
- appPath = appPath . Substring ( 0 , appPath . Length - 4 ) ;
78
- }
79
- if ( appPath . EndsWith ( "git-credential-manager-core" , StringComparison . OrdinalIgnoreCase ) )
80
- {
81
- context . Streams . Error . WriteLine (
82
- "warning: git-credential-manager-core was renamed to git-credential-manager" ) ;
83
- context . Streams . Error . WriteLine (
84
- $ "warning: see { Constants . HelpUrls . GcmExecRename } for more information") ;
85
- }
86
- }
87
-
88
58
// Register all supported host providers at the normal priority.
89
59
// The generic provider should never win against a more specific one, so register it with low priority.
90
60
app . RegisterProvider ( new AzureReposHostProvider ( context ) , HostProviderPriority . Normal ) ;
0 commit comments