libgit2 / libgit2/libgit2sharp
Deleted tags show up in the list
Abierto
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 3.5k
- Forks
- 925
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Reproduction steps
- Add a new tag in github repository online (www.github.com).
- Run .Net core Controller.
- Added tag show up in the Api.
- Delete a tag in github repository online.
- Run controller and API.
- Deleted tag show up in API Controller.
-
_repository = new Repository("localfolderpath"); var network = _repository.Network.Remotes.First(); var refSpecs = new List<string>() { network.FetchRefSpecs.First().Specification }; var fetchOptions = new FetchOptions { TagFetchMode = TagFetchMode.All }; fetchOptions.CredentialsProvider = (_url, _user, _cred) => new DefaultCredentials(); fetchOptions.CredentialsProvider += (_url, _user, _cred) => _userNamePasswordCredentials; Commands.Pull(_repository, new Signature(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(), DateTime.Now), new PullOptions() { FetchOptions = fetchOptions, MergeOptions = new MergeOptions() { MergeFileFavor = MergeFileFavor.Theirs, CommitOnSuccess = true } }); foreach (Remote remote in _repository.Network.Remotes) { Commands.Fetch(_repository, remote.Name, new string[0], fetchOptions, null); _repository.Network.Fetch(remote.Name, remote.FetchRefSpecs.Select(r => r.Specification), fetchOptions); }
Expected behavior
- Deleted tags shouldn't come up when using _repository.Tags
Actual behavior
- Deleted tags come up in _repository.Tags
Version of LibGit2Sharp (release number or SHA1)
Libgit2Sharp 0.26.2
Operating system(s) tested; .NET runtime tested
.Net Core 3.5, Microsoft Visual Studio Professional 2019 Version 16.9.0, .Net Framework 4.7.03190, Microsoft windows 10 pro.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el problema con LibGit2Sharp 0.26.2 usando las llamadas Pull y Fetch mostradas, y luego inspecciona cómo se rellena _repository.Tags después de eliminar una etiqueta remota. Compara las refs obtenidas con la lista de etiquetas esperada; se considera completado cuando las etiquetas remotas eliminadas ya no aparecen en _repository.Tags.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, git
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100