Skip to content

Commit

Permalink
Add Cargo global config
Browse files Browse the repository at this point in the history
Forces `cargo` to use the `git` executable for git operations. See this
GitHub issue for context: rust-lang/cargo#3381
  • Loading branch information
kplattret committed May 31, 2022
1 parent 7821acc commit 8014edb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[net]
git-fetch-with-cli = true
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ function installation_files() {
}

function setup_dotfiles() {
rm -rf ~/.gitconfig \
rm -rf ~/.cargo/config.toml \
~/.gitconfig \
~/.gitignore_global \
~/.ssh/config \
~/.tmux.conf \
~/.vim \
~/.vimrc \
~/.zshrc

ln -s ~/.dotfiles/cargo/config.toml ~/.cargo/config.toml
ln -s ~/.dotfiles/git/gitconfig ~/.gitconfig
ln -s ~/.dotfiles/git/gitignore_global ~/.gitignore_global
ln -s ~/.dotfiles/ssh/config ~/.ssh/config
Expand Down

0 comments on commit 8014edb

Please sign in to comment.