From d89e6567cc004893afc2b53a33d8754869fa51c6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Nov 2011 15:50:56 -0500 Subject: [PATCH] Set --work-tree to REPO when running 'git pull'. --- dotfiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles.sh b/dotfiles.sh index cb9dc36..f400bc7 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -315,7 +315,7 @@ function fetch() get_repo_source "${REPO}" || return 1 TRANSFER=$(nonempty_option 'fetch' 'TRANSFER' "${REPO_SOURCE_DATA['transfer']}") || return 1 if [ "${TRANSFER}" = 'git' ]; then - "${GIT}" --git-dir "${REPO}/.git" pull || return 1 + "${GIT}" --git-dir "${REPO}/.git" --work-tree "${REPO}" pull || return 1 elif [ "${TRANSFER}" = 'wget' ]; then wget_fetch "${REPO}" || return 1 else -- 2.26.2