From 8bd2ffafddc3d45c8f4f5181401b829919940393 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 5 Jun 2023 19:00:49 +0530 Subject: [PATCH] try moving to the bare repo ;) --- scripts/doas-pratham.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/scripts/doas-pratham.sh b/scripts/doas-pratham.sh index 0ecc587..94095e0 100755 --- a/scripts/doas-pratham.sh +++ b/scripts/doas-pratham.sh @@ -1,18 +1,7 @@ #!/usr/bin/env bash +PRATHAM_HOME=/home/pratham -pushd /home/pratham -mkdir my-git-repos -pushd my-git-repos -git clone --depth 1 https://git.thefossguy.com/thefossguy/dotfiles.git -pushd dotfiles -tput -x clear -rsync \ - --verbose --recursive --size-only --human-readable \ - --progress --stats \ - --itemize-changes --checksum --perms \ - --exclude=".git" --exclude=".gitignore" --exclude="README.md" \ - --exclude="run_me.sh" --exclude="_OTHER" \ - ../dotfiles/ ~/ -popd -popd +pushd ${PRATHAM_HOME} +git clone --depth 1 --bare https://git.thefossguy.com/thefossguy/dotfiles.git +git --git-dir=${PRATHAM_HOME}/my-git-repos/dotfiles --work-tree=${PRATHAM_HOME} checkout popd