Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git.py(git_cmd): always pass "-c" "fetch.prune=false" to git
Problem: Anod sometimes breaks because users set fetch.prune=true in their .gitconfig, which causes Git to remove references that are actually required by Anod during `git fetch`es. Reproducer: Add the below snippet of code to your .gitconfig and run `anod update` twice. ```gitconfig [fetch] prune = true ``` Solution: Make every git command run with `-c fetch.prune=false`. This ensures that every git command will behave in an unsurprising way with regards to reference pruning on fetch. When pruning references on fetch is actually required, users of the `git_cmd` command will be able to add `--prune` to their `fetch` subcommand.
- Loading branch information