From ad82f328282f3a2fa444447f5d069acc58b5b31b Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 22 Mar 2021 11:26:45 +0300 Subject: [PATCH] fix fresh install with ancient git --- .config/dotfiles/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/dotfiles/install.sh b/.config/dotfiles/install.sh index 46daf21..cab0e09 100755 --- a/.config/dotfiles/install.sh +++ b/.config/dotfiles/install.sh @@ -41,7 +41,8 @@ dot_install() { backup_unconditionally git_env mkdir -p "${GIT_DIR}" - git init -b ${gh_br} + git init + git branch -M ${gh_br} || true git_config git_update } @@ -118,7 +119,7 @@ git_config() { git_update() { git remote update -p git pull - git gc --aggressive --prune=all --force + git gc --aggressive --prune=all --force || git gc || true } tar_test() {