From a3cf00065b3e7618e5f4c85d3a86b36f0ae7378e Mon Sep 17 00:00:00 2001 From: pat-s Date: Wed, 16 Jun 2021 13:56:32 +0200 Subject: [PATCH 1/2] copy local project git config to temporary drat dir --- R/deploy.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/R/deploy.R b/R/deploy.R index 608c550c..03bde589 100644 --- a/R/deploy.R +++ b/R/deploy.R @@ -60,6 +60,9 @@ deploy_minicran_package <- function(drat_repo, pkgname <- desc::desc_get("Package") pkgversion <- desc::desc_get_version() + # copy git config in case config is not set globally + file.copy(".git/config", paste0(drat_dir, "/.git/config"), overwrite = TRUE) + withr::with_dir( drat_dir, withr::with_options( From b0db3451f0c20b2f61bb010898e2ca031ef8e2eb Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Thu, 17 Jun 2021 12:42:35 +0200 Subject: [PATCH 2/2] Update R/deploy.R MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kirill Müller --- R/deploy.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/deploy.R b/R/deploy.R index 03bde589..2afd0022 100644 --- a/R/deploy.R +++ b/R/deploy.R @@ -61,7 +61,7 @@ deploy_minicran_package <- function(drat_repo, pkgversion <- desc::desc_get_version() # copy git config in case config is not set globally - file.copy(".git/config", paste0(drat_dir, "/.git/config"), overwrite = TRUE) + file.copy(".git/config", file.path(drat_dir, ".git/config"), overwrite = TRUE) withr::with_dir( drat_dir,