From 9e797677048cecc54caa954c3d54656290a0f041 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Sun, 21 Mar 2021 21:39:46 +0300 Subject: [PATCH] don't modify git remote when updating --- .config/dotfiles/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/dotfiles/install.sh b/.config/dotfiles/install.sh index f906d98..4fcb582 100755 --- a/.config/dotfiles/install.sh +++ b/.config/dotfiles/install.sh @@ -42,6 +42,7 @@ dot_install() { git_env mkdir -p "${GIT_DIR}" git init -b ${gh_br} + git remote add origin "${u_repo}" git_config git_update } @@ -103,8 +104,6 @@ git_env() { git_config() { ## remote - git remote add origin "${u_repo}" || \ - git remote set-url origin "${u_repo}" git config remote.origin.fetch "+refs/heads/${gh_br}:refs/remotes/origin/${gh_br}" git config remote.origin.tagopt '--no-tags' git config "branch.${gh_br}.remote" origin