예제 #1
0
 public GitRepository(string gitDir, IContainer container, Globals globals, RemoteConfigConverter remoteConfigReader)
     : base(container)
 {
     _container          = container;
     _globals            = globals;
     GitDir              = gitDir;
     _repository         = new Repository(GitDir);
     _remoteConfigReader = remoteConfigReader;
 }
예제 #2
0
        public GitRepository(string gitDir, IContainer container, Globals globals, RemoteConfigConverter remoteConfigReader)
            : base(container)
        {
            _container          = container;
            _globals            = globals;
            GitDir              = gitDir;
            _repository         = new Repository(GitDir);
            _remoteConfigReader = remoteConfigReader;

            var  value = GetConfig <string>(GitTfsConstants.DisableGitignoreSupport, bool.TrueString);
            bool disableGitignoreSupport;

            if (value != null && bool.TryParse(value, out disableGitignoreSupport))
            {
                _disableGitignoreSupport = disableGitignoreSupport;
            }
        }